summaryrefslogtreecommitdiff
path: root/libpurple/conversation.c
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@pidgin.im>2008-04-13 17:12:05 +0000
committerSadrul Habib Chowdhury <sadrul@pidgin.im>2008-04-13 17:12:05 +0000
commit736c8eaecc294c0e95e6209f9c86081f5cc8b110 (patch)
tree27d69f5f8984d23ed6d1da4e529413d28c5858ef /libpurple/conversation.c
parentd74f0b6edc9b51c28096eb276bda85cad94736f3 (diff)
downloadpidgin-736c8eaecc294c0e95e6209f9c86081f5cc8b110.tar.gz
When you try to execute a command (e.g., /part etc.) in a chat on a
disconnected account, the command fails. But there's no notification of the failure. Fix this by making sure the error message gets written in the conv.
Diffstat (limited to 'libpurple/conversation.c')
-rw-r--r--libpurple/conversation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpurple/conversation.c b/libpurple/conversation.c
index 577128267c..7706318d5e 100644
--- a/libpurple/conversation.c
+++ b/libpurple/conversation.c
@@ -862,7 +862,7 @@ purple_conversation_write(PurpleConversation *conv, const char *who,
gc = purple_account_get_connection(account);
if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT &&
- (gc == NULL || !g_slist_find(gc->buddy_chats, conv)))
+ (gc != NULL && !g_slist_find(gc->buddy_chats, conv)))
return;
if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM &&