Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- 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);