# HG changeset patch # User Sadrul Habib Chowdhury # Date 1182579605 0 # Node ID 7684084830c6bcc2bfd77a14d71f583a7c7577da # Parent 2a5c5d6757896b0e21ee373edab76f14706e86f0 Fix a crash when trying to alias someone from the tab-label on a disconnected account. diff -r 2a5c5d675789 -r 7684084830c6 libpurple/server.c --- a/libpurple/server.c Sat Jun 23 06:01:30 2007 +0000 +++ b/libpurple/server.c Sat Jun 23 06:20:05 2007 +0000 @@ -198,7 +198,7 @@ { PurplePluginProtocolInfo *prpl_info = NULL; - if (b != NULL && b->account->gc->prpl != NULL) + if (b != NULL && b->account->gc && b->account->gc->prpl != NULL) prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(b->account->gc->prpl); if (b && prpl_info && prpl_info->alias_buddy) { diff -r 2a5c5d675789 -r 7684084830c6 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sat Jun 23 06:01:30 2007 +0000 +++ b/pidgin/gtkconv.c Sat Jun 23 06:20:05 2007 +0000 @@ -8069,6 +8069,11 @@ return FALSE; } + if (!purple_account_is_connected(gtkconv->active_conv->account)) { + /* Do not allowing aliasing someone in a disconnected account. */ + return FALSE; + } + /* alias label */ entry = gtk_entry_new(); gtk_entry_set_has_frame(GTK_ENTRY(entry), FALSE);