# HG changeset patch # User Mark Doliner # Date 1120940877 0 # Node ID b2ace57224e280d2cac8c17fb4e071695c388b6b # Parent 12f029b899565cf460cdadeefd8a28a5e354dafb [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 diff -r 12f029b89956 -r b2ace57224e2 src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Sat Jul 09 20:16:50 2005 +0000 +++ b/src/protocols/irc/irc.c Sat Jul 09 20:27:57 2005 +0000 @@ -453,6 +453,8 @@ if (strcmp(status_id, "offline") && !gc) { gaim_account_connect(account); + } else if (!strcmp(status_id, "offline") && gc) { + gaim_account_disconnect(account); } else if (!strcmp(status_id, "away")) { args[0] = gaim_status_get_attr_string(status, "message"); irc_cmd_away(irc, "away", NULL, args);