diff src/protocols/irc/cmds.c @ 13912:3d1cee0d360d

[gaim-migrate @ 16411] Fix the IRC crash-on-quit bug that I introduced two weeks ago. My bad. account->disconnecting seems weird to me... it seems like we should get rid of it and add a GAIM_DISCONNECTING state to GaimConnectionState, instead committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 03 Jul 2006 05:37:41 +0000
parents 5d5e249c488e
children
line wrap: on
line diff
--- a/src/protocols/irc/cmds.c	Mon Jul 03 02:27:41 2006 +0000
+++ b/src/protocols/irc/cmds.c	Mon Jul 03 05:37:41 2006 +0000
@@ -388,7 +388,8 @@
 
 		irc->quitting = TRUE;
 
-		gaim_account_set_status(irc->account, "offline", TRUE, NULL);
+		if (!irc->account->disconnecting)
+			gaim_account_set_status(irc->account, "offline", TRUE, NULL);
 	}
 
 	return 0;