soc.2009.transport: 473ba981: fixed bug in conv_write handler,	when me...
    hanzz at soc.pidgin.im 
    hanzz at soc.pidgin.im
       
    Tue Jun  2 04:30:55 EDT 2009
    
    
  
-----------------------------------------------------------------
Revision: 473ba981f7d82ac5729ee370d11d23f90643e856
Ancestor: 69ed88bed5e92970444427016b6df587137c21ea
Author: hanzz at soc.pidgin.im
Date: 2009-06-01T11:37:44
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/473ba981f7d82ac5729ee370d11d23f90643e856
Modified files:
        user.cpp
ChangeLog: 
fixed bug in conv_write handler, when messages were sent back to user
-------------- next part --------------
============================================================
--- user.cpp	738ad95d9ee7431924ea6b861a2badfb453dbb66
+++ user.cpp	fd160a467f78d548b62b563cc5b5bf94c4e4b08e
@@ -466,6 +466,10 @@ void User::purpleConversationWriteIM(Pur
 void User::purpleConversationWriteIM(PurpleConversation *conv, const char *who, const char *msg, PurpleMessageFlags flags, time_t mtime) {
 	if (who == NULL)
 		return;
+	
+	if (flags & PURPLE_MESSAGE_SEND)
+		return;
+	
 	std::string name = (std::string) purple_conversation_get_name(conv);
 	if (name.empty())
 		return;
    
    
More information about the Commits
mailing list