changeset 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 b210409cdc56
children 4661eefa0840
files src/protocols/irc/cmds.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;