finch/plugins/gnthistory.c

changeset 27333
49e77c0167d2
parent 22334
6eec04817c0d
child 29304
6a941ac152e3
--- a/finch/plugins/gnthistory.c	Mon Jun 15 21:43:25 2009 +0000
+++ b/finch/plugins/gnthistory.c	Tue Jun 16 16:44:51 2009 +0000
@@ -31,6 +31,7 @@
 #include "util.h"
 #include "version.h"
 
+#include "gntconv.h"
 #include "gntplugin.h"
 #include "gntrequest.h"
 
@@ -54,6 +55,9 @@
 	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. */

mercurial