pidgin: 3eceaa6c: Do not blurt out the history if there's ...

sadrul at pidgin.im sadrul at pidgin.im
Sat Jun 20 17:45:30 EDT 2009


-----------------------------------------------------------------
Revision: 3eceaa6c40cc71435a27e3175ed313c342e01062
Ancestor: 47f25059666d286ddfefc874f5486360935d8c2a
Author: sadrul at pidgin.im
Date: 2009-06-16T16:44:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/3eceaa6c40cc71435a27e3175ed313c342e01062

Modified files:
        finch/plugins/gnthistory.c

ChangeLog: 

Do not blurt out the history if there's already a conversation open.

-------------- next part --------------
============================================================
--- finch/plugins/gnthistory.c	a604ebc8b52bcb44c408e1b0a9673c859d24c464
+++ finch/plugins/gnthistory.c	61a2ce816278e7595e6c3a479c842e60219c47a0
@@ -31,6 +31,7 @@
 #include "util.h"
 #include "version.h"
 
+#include "gntconv.h"
 #include "gntplugin.h"
 #include "gntrequest.h"
 
@@ -54,6 +55,9 @@ static void historize(PurpleConversation
 	if (convtype == PURPLE_CONV_TYPE_IM) {
 		GSList *buddies;
 		GSList *cur;
+		FinchConv *fc = FINCH_CONV(c);
+		if (fc->list && fc->list->next) /* We were already in the middle of a conversation. */
+			return;
 
 		/* If we're not logging, don't show anything.
 		 * Otherwise, we might show a very old log. */


More information about the Commits mailing list