changeset 27109:bd84462b0e17

Do not blurt out the history if there's already a conversation open.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 16 Jun 2009 16:44:51 +0000
parents 38c4973b5222
children 27ccab320d8a
files finch/plugins/gnthistory.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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. */