comparison src/protocols/irc/irc.c @ 11079:b2ace57224e2

[gaim-migrate @ 13089] sf patch #1233607, from Sadrul H C "The other protocols allows to disconnect by setting the status to "offline" (_set_status). This patch makes IRC do that as well." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 09 Jul 2005 20:27:57 +0000
parents 634fec5ed0f2
children 8faabf4081ca
comparison
equal deleted inserted replaced
11078:12f029b89956 11079:b2ace57224e2
451 451
452 args[0] = NULL; 452 args[0] = NULL;
453 453
454 if (strcmp(status_id, "offline") && !gc) { 454 if (strcmp(status_id, "offline") && !gc) {
455 gaim_account_connect(account); 455 gaim_account_connect(account);
456 } else if (!strcmp(status_id, "offline") && gc) {
457 gaim_account_disconnect(account);
456 } else if (!strcmp(status_id, "away")) { 458 } else if (!strcmp(status_id, "away")) {
457 args[0] = gaim_status_get_attr_string(status, "message"); 459 args[0] = gaim_status_get_attr_string(status, "message");
458 irc_cmd_away(irc, "away", NULL, args); 460 irc_cmd_away(irc, "away", NULL, args);
459 } 461 }
460 } 462 }