Mercurial > pidgin.yaz
annotate finch/plugins/gnthistory.c @ 32118:7675022d2312
We should not be installing libpurple/valgrind.h
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 13 Jun 2011 17:31:03 +0000 |
parents | a538cb73f897 |
children |
rev | line source |
---|---|
15818 | 1 /** |
2 * @file gnthistory.c Show log from previous conversation | |
3 * | |
4 * Copyright (C) 2006 Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | |
5 * | |
6 * This program is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 2 of the License, or | |
9 * (at your option) any later version. | |
10 * | |
11 * This program is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program; if not, write to the Free Software | |
19680
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16677
diff
changeset
|
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15818 | 19 */ |
20 | |
21 /* Ripped from gtk/plugins/history.c */ | |
22 | |
23 #include "internal.h" | |
24 | |
25 #include "conversation.h" | |
26 #include "debug.h" | |
27 #include "log.h" | |
21487
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
28 #include "request.h" |
15818 | 29 #include "prefs.h" |
30 #include "signals.h" | |
31 #include "util.h" | |
32 #include "version.h" | |
33 | |
27191
bd84462b0e17
Do not blurt out the history if there's already a conversation open.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22212
diff
changeset
|
34 #include "gntconv.h" |
15818 | 35 #include "gntplugin.h" |
21487
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
36 #include "gntrequest.h" |
15818 | 37 |
38 #define HISTORY_PLUGIN_ID "gnt-history" | |
39 | |
40 #define HISTORY_SIZE (4 * 1024) | |
41 | |
15823 | 42 static void historize(PurpleConversation *c) |
15818 | 43 { |
15823 | 44 PurpleAccount *account = purple_conversation_get_account(c); |
45 const char *name = purple_conversation_get_name(c); | |
46 PurpleConversationType convtype; | |
15818 | 47 GList *logs = NULL; |
48 const char *alias = name; | |
15823 | 49 PurpleLogReadFlags flags; |
15818 | 50 char *history; |
51 char *header; | |
15823 | 52 PurpleMessageFlags mflag; |
15818 | 53 |
15823 | 54 convtype = purple_conversation_get_type(c); |
22212
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
55 if (convtype == PURPLE_CONV_TYPE_IM) { |
15818 | 56 GSList *buddies; |
57 GSList *cur; | |
27191
bd84462b0e17
Do not blurt out the history if there's already a conversation open.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22212
diff
changeset
|
58 FinchConv *fc = FINCH_CONV(c); |
bd84462b0e17
Do not blurt out the history if there's already a conversation open.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22212
diff
changeset
|
59 if (fc->list && fc->list->next) /* We were already in the middle of a conversation. */ |
bd84462b0e17
Do not blurt out the history if there's already a conversation open.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
22212
diff
changeset
|
60 return; |
15818 | 61 |
62 /* If we're not logging, don't show anything. | |
63 * Otherwise, we might show a very old log. */ | |
16427
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
15823
diff
changeset
|
64 if (!purple_prefs_get_bool("/purple/logging/log_ims")) |
15818 | 65 return; |
66 | |
67 /* Find buddies for this conversation. */ | |
22212
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
68 buddies = purple_find_buddies(account, name); |
15818 | 69 |
70 /* If we found at least one buddy, save the first buddy's alias. */ | |
71 if (buddies != NULL) | |
15823 | 72 alias = purple_buddy_get_contact_alias((PurpleBuddy *)buddies->data); |
15818 | 73 |
22212
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
74 for (cur = buddies; cur != NULL; cur = cur->next) { |
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
75 PurpleBlistNode *node = cur->data; |
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
76 if ((node != NULL) && |
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
77 ((purple_blist_node_get_sibling_prev(node) != NULL) || |
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
78 (purple_blist_node_get_sibling_next(node) != NULL))) { |
15823 | 79 PurpleBlistNode *node2; |
15818 | 80 |
15823 | 81 alias = purple_buddy_get_contact_alias((PurpleBuddy *)node); |
15818 | 82 |
83 /* We've found a buddy that matches this conversation. It's part of a | |
15823 | 84 * PurpleContact with more than one PurpleBuddy. Loop through the PurpleBuddies |
15818 | 85 * in the contact and get all the logs. */ |
22212
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
86 for (node2 = purple_blist_node_get_first_child(purple_blist_node_get_parent(node)); |
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
87 node2 != NULL ; node2 = purple_blist_node_get_sibling_next(node2)) { |
15818 | 88 logs = g_list_concat( |
22212
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
89 purple_log_get_logs(PURPLE_LOG_IM, |
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
90 purple_buddy_get_name((PurpleBuddy *)node2), |
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
91 purple_buddy_get_account((PurpleBuddy *)node2)), |
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
92 logs); |
15818 | 93 } |
94 break; | |
22212
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
95 } |
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
96 } |
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
97 g_slist_free(buddies); |
15818 | 98 |
99 if (logs == NULL) | |
15823 | 100 logs = purple_log_get_logs(PURPLE_LOG_IM, name, account); |
15818 | 101 else |
15823 | 102 logs = g_list_sort(logs, purple_log_compare); |
22212
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
103 } else if (convtype == PURPLE_CONV_TYPE_CHAT) { |
15818 | 104 /* If we're not logging, don't show anything. |
105 * Otherwise, we might show a very old log. */ | |
16427
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
15823
diff
changeset
|
106 if (!purple_prefs_get_bool("/purple/logging/log_chats")) |
15818 | 107 return; |
108 | |
15823 | 109 logs = purple_log_get_logs(PURPLE_LOG_CHAT, name, account); |
15818 | 110 } |
111 | |
112 if (logs == NULL) | |
113 return; | |
114 | |
15823 | 115 mflag = PURPLE_MESSAGE_NO_LOG | PURPLE_MESSAGE_SYSTEM | PURPLE_MESSAGE_DELAYED; |
116 history = purple_log_read((PurpleLog*)logs->data, &flags); | |
15818 | 117 |
118 header = g_strdup_printf(_("<b>Conversation with %s on %s:</b><br>"), alias, | |
22212
6bb29f94862c
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21560
diff
changeset
|
119 purple_date_format_full(localtime(&((PurpleLog *)logs->data)->time))); |
15823 | 120 purple_conversation_write(c, "", header, mflag, time(NULL)); |
15818 | 121 g_free(header); |
122 | |
15823 | 123 if (flags & PURPLE_LOG_READ_NO_NEWLINE) |
124 purple_str_strip_char(history, '\n'); | |
125 purple_conversation_write(c, "", history, mflag, time(NULL)); | |
15818 | 126 g_free(history); |
127 | |
15823 | 128 purple_conversation_write(c, "", "<hr>", mflag, time(NULL)); |
15818 | 129 |
15823 | 130 g_list_foreach(logs, (GFunc)purple_log_free, NULL); |
15818 | 131 g_list_free(logs); |
132 } | |
133 | |
134 static void | |
15823 | 135 history_prefs_check(PurplePlugin *plugin) |
15818 | 136 { |
16427
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
15823
diff
changeset
|
137 if (!purple_prefs_get_bool("/purple/logging/log_ims") && |
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
15823
diff
changeset
|
138 !purple_prefs_get_bool("/purple/logging/log_chats")) |
15818 | 139 { |
21487
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
140 PurpleRequestFields *fields = purple_request_fields_new(); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
141 PurpleRequestFieldGroup *group; |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
142 PurpleRequestField *field; |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
143 struct { |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
144 const char *pref; |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
145 const char *label; |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
146 } prefs[] = { |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
147 {"/purple/logging/log_ims", N_("Log IMs")}, |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
148 {"/purple/logging/log_chats", N_("Log chats")}, |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
149 {NULL, NULL} |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
150 }; |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
151 int iter; |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
152 GList *list = purple_log_logger_get_options(); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
153 const char *system = purple_prefs_get_string("/purple/logging/format"); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
154 |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
155 group = purple_request_field_group_new(_("Logging")); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
156 |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
157 field = purple_request_field_list_new("/purple/logging/format", _("Log format")); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
158 while (list) { |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
159 const char *label = _(list->data); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
160 list = g_list_delete_link(list, list); |
29822
cc1e35fa774d
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@wiktel.com>
parents:
22212
diff
changeset
|
161 purple_request_field_list_add_icon(field, label, NULL, list->data); |
21487
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
162 if (system && strcmp(system, list->data) == 0) |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
163 purple_request_field_list_add_selected(field, label); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
164 list = g_list_delete_link(list, list); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
165 } |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
166 purple_request_field_group_add_field(group, field); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
167 |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
168 for (iter = 0; prefs[iter].pref; iter++) { |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
169 field = purple_request_field_bool_new(prefs[iter].pref, _(prefs[iter].label), |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
170 purple_prefs_get_bool(prefs[iter].pref)); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
171 purple_request_field_group_add_field(group, field); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
172 } |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
173 |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
174 purple_request_fields_add_group(fields, group); |
f2e42e09e635
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
21030
diff
changeset
|
175 |
21560
665e04562de0
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@wiktel.com>
parents:
21487
diff
changeset
|
176 purple_request_fields(plugin, NULL, _("History Plugin Requires Logging"), |
665e04562de0
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@wiktel.com>
parents:
21487
diff
changeset
|
177 _("Logging can be enabled from Tools -> Preferences -> Logging.\n\n" |
665e04562de0
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@wiktel.com>
parents:
21487
diff
changeset
|
178 "Enabling logs for instant messages and/or chats will activate " |
665e04562de0
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@wiktel.com>
parents:
21487
diff
changeset
|
179 "history for the same conversation type(s)."), |
665e04562de0
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@wiktel.com>
parents:
21487
diff
changeset
|
180 fields, |
665e04562de0
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@wiktel.com>
parents:
21487
diff
changeset
|
181 _("OK"), G_CALLBACK(finch_request_save_in_prefs), |
665e04562de0
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@wiktel.com>
parents:
21487
diff
changeset
|
182 _("Cancel"), NULL, |
665e04562de0
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@wiktel.com>
parents:
21487
diff
changeset
|
183 NULL, NULL, NULL, plugin); |
15818 | 184 } |
185 } | |
186 | |
15823 | 187 static void history_prefs_cb(const char *name, PurplePrefType type, |
15818 | 188 gconstpointer val, gpointer data) |
189 { | |
15823 | 190 history_prefs_check((PurplePlugin *)data); |
15818 | 191 } |
192 | |
193 static gboolean | |
15823 | 194 plugin_load(PurplePlugin *plugin) |
15818 | 195 { |
15823 | 196 purple_signal_connect(purple_conversations_get_handle(), |
15818 | 197 "conversation-created", |
15823 | 198 plugin, PURPLE_CALLBACK(historize), NULL); |
15818 | 199 |
16427
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
15823
diff
changeset
|
200 purple_prefs_connect_callback(plugin, "/purple/logging/log_ims", |
15818 | 201 history_prefs_cb, plugin); |
16427
4999bbc52881
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@gmail.com>
parents:
15823
diff
changeset
|
202 purple_prefs_connect_callback(plugin, "/purple/logging/log_chats", |
15818 | 203 history_prefs_cb, plugin); |
204 | |
205 history_prefs_check(plugin); | |
206 | |
207 return TRUE; | |
208 } | |
209 | |
15823 | 210 static PurplePluginInfo info = |
15818 | 211 { |
15823 | 212 PURPLE_PLUGIN_MAGIC, |
213 PURPLE_MAJOR_VERSION, | |
214 PURPLE_MINOR_VERSION, | |
215 PURPLE_PLUGIN_STANDARD, | |
15818 | 216 NULL, |
217 0, | |
218 NULL, | |
15823 | 219 PURPLE_PRIORITY_DEFAULT, |
15818 | 220 HISTORY_PLUGIN_ID, |
221 N_("GntHistory"), | |
21030
3cc856ca2338
Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <stu@nosnilmot.com>
parents:
19680
diff
changeset
|
222 DISPLAY_VERSION, |
15818 | 223 N_("Shows recently logged conversations in new conversations."), |
224 N_("When a new conversation is opened this plugin will insert " | |
225 "the last conversation into the current conversation."), | |
226 "Sean Egan <seanegan@gmail.com>\n" | |
227 "Sadrul H Chowdhury <sadrul@users.sourceforge.net>", | |
15823 | 228 PURPLE_WEBSITE, |
15818 | 229 plugin_load, |
230 NULL, | |
231 NULL, | |
232 NULL, | |
233 NULL, | |
234 NULL, | |
16677
30829e806dae
And finch is up to date
Gary Kramlich <grim@reaperworld.com>
parents:
16427
diff
changeset
|
235 NULL, |
30829e806dae
And finch is up to date
Gary Kramlich <grim@reaperworld.com>
parents:
16427
diff
changeset
|
236 |
30829e806dae
And finch is up to date
Gary Kramlich <grim@reaperworld.com>
parents:
16427
diff
changeset
|
237 /* padding */ |
30829e806dae
And finch is up to date
Gary Kramlich <grim@reaperworld.com>
parents:
16427
diff
changeset
|
238 NULL, |
30829e806dae
And finch is up to date
Gary Kramlich <grim@reaperworld.com>
parents:
16427
diff
changeset
|
239 NULL, |
30829e806dae
And finch is up to date
Gary Kramlich <grim@reaperworld.com>
parents:
16427
diff
changeset
|
240 NULL, |
15818 | 241 NULL |
242 }; | |
243 | |
244 static void | |
15823 | 245 init_plugin(PurplePlugin *plugin) |
15818 | 246 { |
247 } | |
248 | |
15823 | 249 PURPLE_INIT_PLUGIN(gnthistory, init_plugin, info) |
15818 | 250 |