Mercurial > pidgin
diff finch/gntroomlist.c @ 24597:c1f954e51389
Fix a crash that happens when accessing the roomlist for an account that's
not connected. Fixes #7707.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 06 Dec 2008 05:14:07 +0000 |
parents | ad357ca94de9 |
children | b23211876f47 |
line wrap: on
line diff
--- a/finch/gntroomlist.c Sat Dec 06 05:05:02 2008 +0000 +++ b/finch/gntroomlist.c Sat Dec 06 05:14:07 2008 +0000 @@ -239,7 +239,8 @@ PurpleConnection *gc = list->data; prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc)); - if (prpl_info->roomlist_get_list != NULL) { + if (PURPLE_CONNECTION_IS_CONNECTED(gc) && + prpl_info->roomlist_get_list != NULL) { PurpleAccount *account = purple_connection_get_account(gc); char *text = g_strdup_printf("%s (%s)", purple_account_get_username(account),