Mercurial > pidgin
changeset 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 | 12f029b89956 |
children | f54740547c95 |
files | src/protocols/irc/irc.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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);