finch/plugins/gnthistory.c

changeset 27333
49e77c0167d2
parent 22334
6eec04817c0d
child 29304
6a941ac152e3
equal deleted inserted replaced
27332:8240ab259385 27333:49e77c0167d2
29 #include "prefs.h" 29 #include "prefs.h"
30 #include "signals.h" 30 #include "signals.h"
31 #include "util.h" 31 #include "util.h"
32 #include "version.h" 32 #include "version.h"
33 33
34 #include "gntconv.h"
34 #include "gntplugin.h" 35 #include "gntplugin.h"
35 #include "gntrequest.h" 36 #include "gntrequest.h"
36 37
37 #define HISTORY_PLUGIN_ID "gnt-history" 38 #define HISTORY_PLUGIN_ID "gnt-history"
38 39
52 53
53 convtype = purple_conversation_get_type(c); 54 convtype = purple_conversation_get_type(c);
54 if (convtype == PURPLE_CONV_TYPE_IM) { 55 if (convtype == PURPLE_CONV_TYPE_IM) {
55 GSList *buddies; 56 GSList *buddies;
56 GSList *cur; 57 GSList *cur;
58 FinchConv *fc = FINCH_CONV(c);
59 if (fc->list && fc->list->next) /* We were already in the middle of a conversation. */
60 return;
57 61
58 /* If we're not logging, don't show anything. 62 /* If we're not logging, don't show anything.
59 * Otherwise, we might show a very old log. */ 63 * Otherwise, we might show a very old log. */
60 if (!purple_prefs_get_bool("/purple/logging/log_ims")) 64 if (!purple_prefs_get_bool("/purple/logging/log_ims"))
61 return; 65 return;

mercurial