Mercurial > pidgin.yaz
diff src/protocols/irc/cmds.c @ 9440:00242c2419c3
[gaim-migrate @ 10261]
This should prevent any loops on connection errors for IRC
committer: Tailor Script <tailor@pidgin.im>
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Fri, 02 Jul 2004 03:54:14 +0000 |
| parents | 6430b09ccc71 |
| children | 3f97624e7753 |
line wrap: on
line diff
--- a/src/protocols/irc/cmds.c Thu Jul 01 23:32:47 2004 +0000 +++ b/src/protocols/irc/cmds.c Fri Jul 02 03:54:14 2004 +0000 @@ -362,9 +362,13 @@ { char *buf; - buf = irc_format(irc, "v:", "QUIT", (args && args[0]) ? args[0] : "Download Gaim: " GAIM_WEBSITE); - irc_send(irc, buf); - g_free(buf); + if (!irc->quitting) { + buf = irc_format(irc, "v:", "QUIT", (args && args[0]) ? args[0] : "Download Gaim: " GAIM_WEBSITE); + irc_send(irc, buf); + g_free(buf); + + irc->quitting = TRUE; + } return 0; }
