diff pidgin/gtkconv.c @ 21307:5cca0d7d9081

Fix for the crash reported by WormFood in #pidgin when right clicking on the info pane for a conversation when the account is disconnected.
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 10 Nov 2007 22:28:55 +0000
parents 6de09629f091
children 665e04562de0
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Sat Nov 10 16:39:18 2007 +0000
+++ b/pidgin/gtkconv.c	Sat Nov 10 22:28:55 2007 +0000
@@ -3074,6 +3074,9 @@
 					chat, (GDestroyNotify)purple_blist_remove_chat);
 		}
 	} else {
+		if (!purple_account_is_connected(conv->account))
+			return FALSE;
+
 		buddy = purple_find_buddy(conv->account, conv->name);
 
 		/* gotta remain bug-compatible :( libpurple < 2.0.2 didn't handle