soc.2009.transport: 69ed88be: Sending messages only if conversation ha...

hanzz at soc.pidgin.im hanzz at soc.pidgin.im
Tue Jun 2 04:30:56 EDT 2009


-----------------------------------------------------------------
Revision: 69ed88bed5e92970444427016b6df587137c21ea
Ancestor: 6e60900ff58ae6befdfe50c2fe8d9d09b07beb0c
Author: hanzz at soc.pidgin.im
Date: 2009-05-31T09:54:21
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/69ed88bed5e92970444427016b6df587137c21ea

Modified files:
        user.cpp

ChangeLog: 

Sending messages only if conversation has name

-------------- next part --------------
============================================================
--- user.cpp	cd3130b3c6d9bd4a6bc7e3b481436e69eb9268fd
+++ user.cpp	738ad95d9ee7431924ea6b861a2badfb453dbb66
@@ -467,6 +467,8 @@ void User::purpleConversationWriteIM(Pur
 	if (who == NULL)
 		return;
 	std::string name = (std::string) purple_conversation_get_name(conv);
+	if (name.empty())
+		return;
 	// new message from legacy network has been received
 	if (!isOpenedConversation(name)) {
 			m_conversations[name] = conv;


More information about the Commits mailing list