Thu, 30 Apr 2020 20:27:38 -0500
Clean up the account actions lists as we're iterating to avoid having to iterate it twice.
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
1 | /** |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
2 | * Copyright (C) 2006 Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
3 | * |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
4 | * This program is free software; you can redistribute it and/or modify |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
5 | * it under the terms of the GNU General Public License as published by |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
6 | * the Free Software Foundation; either version 2 of the License, or |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
7 | * (at your option) any later version. |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
8 | * |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
9 | * This program is distributed in the hope that it will be useful, |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
12 | * GNU General Public License for more details. |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
13 | * |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
14 | * You should have received a copy of the GNU General Public License |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
15 | * along with this program; if not, write to the Free Software |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16748
diff
changeset
|
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
17 | */ |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
18 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
19 | /* Ripped from gtk/plugins/history.c */ |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
20 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
21 | #include "internal.h" |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
22 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
23 | #include "conversation.h" |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
24 | #include "debug.h" |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
25 | #include "log.h" |
|
21577
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
26 | #include "request.h" |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
27 | #include "prefs.h" |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
28 | #include "signals.h" |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
29 | #include "util.h" |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
30 | #include "version.h" |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
31 | |
|
27333
49e77c0167d2
Do not blurt out the history if there's already a conversation open.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22334
diff
changeset
|
32 | #include "gntconv.h" |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
33 | #include "gntplugin.h" |
|
21577
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
34 | #include "gntrequest.h" |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
35 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
36 | #define HISTORY_PLUGIN_ID "gnt-history" |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
37 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
38 | #define HISTORY_SIZE (4 * 1024) |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
39 | |
| 15884 | 40 | static void historize(PurpleConversation *c) |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
41 | { |
| 15884 | 42 | PurpleAccount *account = purple_conversation_get_account(c); |
| 43 | const char *name = purple_conversation_get_name(c); | |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
44 | GList *logs = NULL; |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
45 | const char *alias = name; |
| 15884 | 46 | PurpleLogReadFlags flags; |
|
38649
0491c21146e5
Fix one last use of time_t for logs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38358
diff
changeset
|
47 | GDateTime *dt; |
|
0491c21146e5
Fix one last use of time_t for logs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38358
diff
changeset
|
48 | char *date; |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
49 | char *history; |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
50 | char *header; |
| 15884 | 51 | PurpleMessageFlags mflag; |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
52 | |
|
34657
b10d6297ffd5
Refactored finch to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents:
29304
diff
changeset
|
53 | if (PURPLE_IS_IM_CONVERSATION(c)) { |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
54 | GSList *buddies; |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
55 | GSList *cur; |
|
27333
49e77c0167d2
Do not blurt out the history if there's already a conversation open.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22334
diff
changeset
|
56 | FinchConv *fc = FINCH_CONV(c); |
|
49e77c0167d2
Do not blurt out the history if there's already a conversation open.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22334
diff
changeset
|
57 | if (fc->list && fc->list->next) /* We were already in the middle of a conversation. */ |
|
49e77c0167d2
Do not blurt out the history if there's already a conversation open.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22334
diff
changeset
|
58 | return; |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
59 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
60 | /* If we're not logging, don't show anything. |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
61 | * Otherwise, we might show a very old log. */ |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
15906
diff
changeset
|
62 | if (!purple_prefs_get_bool("/purple/logging/log_ims")) |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
63 | return; |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
64 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
65 | /* Find buddies for this conversation. */ |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34699
diff
changeset
|
66 | buddies = purple_blist_find_buddies(account, name); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
67 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
68 | /* If we found at least one buddy, save the first buddy's alias. */ |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
69 | if (buddies != NULL) |
|
34740
9401f9b1ca68
Used GObject-style casts in plugins.
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
70 | alias = purple_buddy_get_contact_alias(PURPLE_BUDDY(buddies->data)); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
71 | |
|
22334
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
72 | for (cur = buddies; cur != NULL; cur = cur->next) { |
|
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
73 | PurpleBlistNode *node = cur->data; |
|
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
74 | if ((node != NULL) && |
|
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
75 | ((purple_blist_node_get_sibling_prev(node) != NULL) || |
|
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
76 | (purple_blist_node_get_sibling_next(node) != NULL))) { |
| 15884 | 77 | PurpleBlistNode *node2; |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
78 | |
|
34740
9401f9b1ca68
Used GObject-style casts in plugins.
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
79 | alias = purple_buddy_get_contact_alias(PURPLE_BUDDY(node)); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
80 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
81 | /* We've found a buddy that matches this conversation. It's part of a |
| 15884 | 82 | * PurpleContact with more than one PurpleBuddy. Loop through the PurpleBuddies |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
83 | * in the contact and get all the logs. */ |
|
22334
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
84 | for (node2 = purple_blist_node_get_first_child(purple_blist_node_get_parent(node)); |
|
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
85 | node2 != NULL ; node2 = purple_blist_node_get_sibling_next(node2)) { |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
86 | logs = g_list_concat( |
|
22334
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
87 | purple_log_get_logs(PURPLE_LOG_IM, |
|
34740
9401f9b1ca68
Used GObject-style casts in plugins.
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
88 | purple_buddy_get_name(PURPLE_BUDDY(node2)), |
|
9401f9b1ca68
Used GObject-style casts in plugins.
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
89 | purple_buddy_get_account(PURPLE_BUDDY(node2))), |
|
22334
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
90 | logs); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
91 | } |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
92 | break; |
|
22334
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
93 | } |
|
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
94 | } |
|
6eec04817c0d
Add API so Finch doesn't need to touch the internals of PurpleBlistNode.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21630
diff
changeset
|
95 | g_slist_free(buddies); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
96 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
97 | if (logs == NULL) |
| 15884 | 98 | logs = purple_log_get_logs(PURPLE_LOG_IM, name, account); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
99 | else |
| 15884 | 100 | logs = g_list_sort(logs, purple_log_compare); |
|
34657
b10d6297ffd5
Refactored finch to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents:
29304
diff
changeset
|
101 | } else if (PURPLE_IS_CHAT_CONVERSATION(c)) { |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
102 | /* If we're not logging, don't show anything. |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
103 | * Otherwise, we might show a very old log. */ |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
15906
diff
changeset
|
104 | if (!purple_prefs_get_bool("/purple/logging/log_chats")) |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
105 | return; |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
106 | |
| 15884 | 107 | logs = purple_log_get_logs(PURPLE_LOG_CHAT, name, account); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
108 | } |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
109 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
110 | if (logs == NULL) |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
111 | return; |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
112 | |
| 15884 | 113 | mflag = PURPLE_MESSAGE_NO_LOG | PURPLE_MESSAGE_SYSTEM | PURPLE_MESSAGE_DELAYED; |
| 114 | history = purple_log_read((PurpleLog*)logs->data, &flags); | |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
115 | |
|
38649
0491c21146e5
Fix one last use of time_t for logs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38358
diff
changeset
|
116 | dt = g_date_time_to_local(((PurpleLog *)logs->data)->time); |
|
0491c21146e5
Fix one last use of time_t for logs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38358
diff
changeset
|
117 | date = g_date_time_format(dt, "%c"); |
|
0491c21146e5
Fix one last use of time_t for logs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38358
diff
changeset
|
118 | header = g_strdup_printf(_("<b>Conversation with %s on %s:</b><br>"), alias, date); |
|
36089
c035b9a63457
Use purple_conversation_write_system_message where appropriate
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34940
diff
changeset
|
119 | purple_conversation_write_system_message(c, header, mflag); |
|
38649
0491c21146e5
Fix one last use of time_t for logs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38358
diff
changeset
|
120 | g_free(date); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
121 | g_free(header); |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
122 | |
| 15884 | 123 | if (flags & PURPLE_LOG_READ_NO_NEWLINE) |
| 124 | purple_str_strip_char(history, '\n'); | |
|
36089
c035b9a63457
Use purple_conversation_write_system_message where appropriate
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34940
diff
changeset
|
125 | purple_conversation_write_system_message(c, history, mflag); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
126 | g_free(history); |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
127 | |
|
36089
c035b9a63457
Use purple_conversation_write_system_message where appropriate
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34940
diff
changeset
|
128 | purple_conversation_write_system_message(c, "<hr>", mflag); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
129 | |
|
39897
16b440d4ab36
Use g_list_free_full instead of g_list_foreach+g_list_free.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39886
diff
changeset
|
130 | g_list_free_full(logs, (GDestroyNotify)purple_log_free); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
131 | } |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
132 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
133 | static void |
| 15884 | 134 | history_prefs_check(PurplePlugin *plugin) |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
135 | { |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
15906
diff
changeset
|
136 | if (!purple_prefs_get_bool("/purple/logging/log_ims") && |
|
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
15906
diff
changeset
|
137 | !purple_prefs_get_bool("/purple/logging/log_chats")) |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
138 | { |
|
21577
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
139 | PurpleRequestFields *fields = purple_request_fields_new(); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
140 | PurpleRequestFieldGroup *group; |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
141 | PurpleRequestField *field; |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
142 | struct { |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
143 | const char *pref; |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
144 | const char *label; |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
145 | } prefs[] = { |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
146 | {"/purple/logging/log_ims", N_("Log IMs")}, |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
147 | {"/purple/logging/log_chats", N_("Log chats")}, |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
148 | {NULL, NULL} |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
149 | }; |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
150 | int iter; |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
151 | GList *list = purple_log_logger_get_options(); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
152 | const char *system = purple_prefs_get_string("/purple/logging/format"); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
153 | |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
154 | group = purple_request_field_group_new(_("Logging")); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
155 | |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
156 | field = purple_request_field_list_new("/purple/logging/format", _("Log format")); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
157 | while (list) { |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
158 | const char *label = _(list->data); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
159 | list = g_list_delete_link(list, list); |
|
24900
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
22334
diff
changeset
|
160 | purple_request_field_list_add_icon(field, label, NULL, list->data); |
|
38268
ad4bed105c9f
Remove found redundant NULL checks
qarkai <qarkai@gmail.com>
parents:
38259
diff
changeset
|
161 | if (purple_strequal(system, list->data)) |
|
21577
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
162 | purple_request_field_list_add_selected(field, label); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
163 | list = g_list_delete_link(list, list); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
164 | } |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
165 | purple_request_field_group_add_field(group, field); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
166 | |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
167 | for (iter = 0; prefs[iter].pref; iter++) { |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
168 | field = purple_request_field_bool_new(prefs[iter].pref, _(prefs[iter].label), |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
169 | purple_prefs_get_bool(prefs[iter].pref)); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
170 | purple_request_field_group_add_field(group, field); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
171 | } |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
172 | |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
173 | purple_request_fields_add_group(fields, group); |
|
bb3567e8bb75
Allow turning on logging when enabling the gnthistory plugin. (this doesn't
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20288
diff
changeset
|
174 | |
|
39562
40dca5c3593a
Update plugins that were referring to menus with ->'s to use the unicode arrows as well
Gary Kramlich <grim@reaperworld.com>
parents:
38649
diff
changeset
|
175 | /* Translators: Please maintain the use of ⇦ or ⇨ to represent the menu hierarchy */ |
|
21630
591a79c1b295
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@pidgin.im>
parents:
21577
diff
changeset
|
176 | purple_request_fields(plugin, NULL, _("History Plugin Requires Logging"), |
|
39562
40dca5c3593a
Update plugins that were referring to menus with ->'s to use the unicode arrows as well
Gary Kramlich <grim@reaperworld.com>
parents:
38649
diff
changeset
|
177 | _("Logging can be enabled from Tools ⇨ Preferences ⇨ Logging.\n\n" |
|
21630
591a79c1b295
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@pidgin.im>
parents:
21577
diff
changeset
|
178 | "Enabling logs for instant messages and/or chats will activate " |
|
591a79c1b295
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@pidgin.im>
parents:
21577
diff
changeset
|
179 | "history for the same conversation type(s)."), |
|
591a79c1b295
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@pidgin.im>
parents:
21577
diff
changeset
|
180 | fields, |
|
591a79c1b295
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@pidgin.im>
parents:
21577
diff
changeset
|
181 | _("OK"), G_CALLBACK(finch_request_save_in_prefs), |
|
591a79c1b295
This merge has the effect of reverting the hinting code from trunk.
Richard Laager <rlaager@pidgin.im>
parents:
21577
diff
changeset
|
182 | _("Cancel"), NULL, |
|
34332
876483829700
Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
29304
diff
changeset
|
183 | NULL, plugin); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
184 | } |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
185 | } |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
186 | |
| 15884 | 187 | static void history_prefs_cb(const char *name, PurplePrefType type, |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
188 | gconstpointer val, gpointer data) |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
189 | { |
| 15884 | 190 | history_prefs_check((PurplePlugin *)data); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
191 | } |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
192 | |
|
36751
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
193 | static FinchPluginInfo * |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
194 | plugin_query(GError **error) |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
195 | { |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
196 | const gchar * const authors[] = { |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
197 | "Sean Egan <seanegan@gmail.com>", |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
198 | "Sadrul H Chowdhury <sadrul@users.sourceforge.net>", |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
199 | NULL |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
200 | }; |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
201 | |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
202 | return finch_plugin_info_new( |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
203 | "id", HISTORY_PLUGIN_ID, |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
204 | "name", N_("GntHistory"), |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
205 | "version", DISPLAY_VERSION, |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
206 | "category", N_("User interface"), |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
207 | "summary", N_("Shows recently logged conversations in new " |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
208 | "conversations."), |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
209 | "description", N_("When a new conversation is opened this plugin will " |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
210 | "insert the last conversation into the current " |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
211 | "conversation."), |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
212 | "authors", authors, |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
213 | "website", PURPLE_WEBSITE, |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
214 | "abi-version", PURPLE_ABI_VERSION, |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
215 | NULL |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
216 | ); |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
217 | } |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
218 | |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
219 | static gboolean |
|
36751
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
220 | plugin_load(PurplePlugin *plugin, GError **error) |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
221 | { |
| 15884 | 222 | purple_signal_connect(purple_conversations_get_handle(), |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
223 | "conversation-created", |
| 15884 | 224 | plugin, PURPLE_CALLBACK(historize), NULL); |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
225 | |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
15906
diff
changeset
|
226 | purple_prefs_connect_callback(plugin, "/purple/logging/log_ims", |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
227 | history_prefs_cb, plugin); |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
15906
diff
changeset
|
228 | purple_prefs_connect_callback(plugin, "/purple/logging/log_chats", |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
229 | history_prefs_cb, plugin); |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
230 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
231 | history_prefs_check(plugin); |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
232 | |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
233 | return TRUE; |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
234 | } |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
235 | |
|
36751
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
236 | static gboolean |
|
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
237 | plugin_unload(PurplePlugin *plugin, GError **error) |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
238 | { |
|
36751
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
239 | return TRUE; |
|
14285
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
240 | } |
|
f8331daf743d
[gaim-migrate @ 16904]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
241 | |
|
36751
a9f6ae7c308e
Refactored finch plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
242 | PURPLE_PLUGIN_INIT(gnthistory, plugin_query, plugin_load, plugin_unload); |