Fri, 01 May 2020 12:13:35 -0500
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
| 15230 | 1 | /* |
| 2 | * Offline Message Emulation - Save messages sent to an offline user as pounce | |
| 3 | * Copyright (C) 2004 | |
| 4 | * | |
| 5 | * This program is free software; you can redistribute it and/or | |
| 6 | * modify it under the terms of the GNU General Public License as | |
| 7 | * published by the Free Software Foundation; either version 2 of the | |
| 8 | * License, or (at your option) any later version. | |
| 9 | * | |
| 10 | * This program is distributed in the hope that it will be useful, but | |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | * General Public License for more details. | |
| 14 | * | |
| 15 | * You should have received a copy of the GNU General Public License | |
| 16 | * 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:
19832
diff
changeset
|
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19832
diff
changeset
|
18 | * 02111-1301, USA. |
| 15230 | 19 | */ |
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
39959
diff
changeset
|
20 | #include <glib/gi18n-lib.h> |
| 15230 | 21 | |
| 22 | #define PLUGIN_ID "core-plugin_pack-offlinemsg" | |
|
15418
bf287f742a5a
[gaim-migrate @ 18149]
Luke Schierer <lschiere@pidgin.im>
parents:
15230
diff
changeset
|
23 | #define PLUGIN_NAME N_("Offline Message Emulation") |
|
36747
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
24 | #define PLUGIN_CATEGORY N_("Utility") |
|
25633
feee0c7e503f
Fix some more mis-identified plugins, like 3b3526a0...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
22268
diff
changeset
|
25 | #define PLUGIN_STATIC_NAME offlinemsg |
|
15418
bf287f742a5a
[gaim-migrate @ 18149]
Luke Schierer <lschiere@pidgin.im>
parents:
15230
diff
changeset
|
26 | #define PLUGIN_SUMMARY N_("Save messages sent to an offline user as pounce.") |
|
bf287f742a5a
[gaim-migrate @ 18149]
Luke Schierer <lschiere@pidgin.im>
parents:
15230
diff
changeset
|
27 | #define PLUGIN_DESCRIPTION N_("Save messages sent to an offline user as pounce.") |
|
36747
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
28 | #define PLUGIN_AUTHORS {"Sadrul H Chowdhury <sadrul@users.sourceforge.net>", NULL} |
| 15230 | 29 | |
|
39959
e47fcffd061b
migrate the libpurple plugins to using purple.h only
Gary Kramlich <grim@reaperworld.com>
parents:
39464
diff
changeset
|
30 | #include <purple.h> |
| 15230 | 31 | |
| 16481 | 32 | #define PREF_PREFIX "/plugins/core/" PLUGIN_ID |
| 15230 | 33 | #define PREF_ALWAYS PREF_PREFIX "/always" |
| 34 | ||
| 35 | typedef struct _OfflineMsg OfflineMsg; | |
| 36 | ||
| 37 | typedef enum | |
| 38 | { | |
| 39 | OFFLINE_MSG_NONE, | |
| 40 | OFFLINE_MSG_YES, | |
| 41 | OFFLINE_MSG_NO | |
| 42 | } OfflineMessageSetting; | |
| 43 | ||
| 44 | struct _OfflineMsg | |
| 45 | { | |
| 15884 | 46 | PurpleAccount *account; |
| 47 | PurpleConversation *conv; | |
| 15230 | 48 | char *who; |
| 49 | char *message; | |
| 50 | }; | |
| 51 | ||
| 52 | static void | |
| 53 | discard_data(OfflineMsg *offline) | |
| 54 | { | |
| 55 | g_free(offline->who); | |
| 56 | g_free(offline->message); | |
| 57 | g_free(offline); | |
| 58 | } | |
| 59 | ||
| 60 | static void | |
| 61 | cancel_poune(OfflineMsg *offline) | |
| 62 | { | |
|
34678
40a30f74a7b8
Removed purple_conversation_[gs]et_data(). Used g_object_[gs]et_data() instead.
Ankit Vani <a@nevitus.org>
parents:
34652
diff
changeset
|
63 | g_object_set_data(G_OBJECT(offline->conv), "plugin_pack:offlinemsg", |
| 15230 | 64 | GINT_TO_POINTER(OFFLINE_MSG_NO)); |
|
34652
65a6bfb86d43
Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents:
34632
diff
changeset
|
65 | purple_conversation_send_with_flags(offline->conv, offline->message, 0); |
| 15230 | 66 | discard_data(offline); |
| 67 | } | |
| 68 | ||
| 69 | static void | |
| 70 | record_pounce(OfflineMsg *offline) | |
| 71 | { | |
| 15884 | 72 | PurplePounce *pounce; |
| 73 | PurplePounceEvent event; | |
| 74 | PurplePounceOption option; | |
| 75 | PurpleConversation *conv; | |
|
32971
d6ad5be6427a
The Offline Message Emulation plugin now adds a note that the message
Mark Doliner <markdoliner@pidgin.im>
parents:
31294
diff
changeset
|
76 | char *temp; |
| 15230 | 77 | |
| 15884 | 78 | event = PURPLE_POUNCE_SIGNON; |
| 79 | option = PURPLE_POUNCE_OPTION_NONE; | |
| 15230 | 80 | |
| 15884 | 81 | pounce = purple_pounce_new(purple_core_get_ui(), offline->account, offline->who, |
| 15230 | 82 | event, option); |
| 83 | ||
| 15884 | 84 | purple_pounce_action_set_enabled(pounce, "send-message", TRUE); |
|
32971
d6ad5be6427a
The Offline Message Emulation plugin now adds a note that the message
Mark Doliner <markdoliner@pidgin.im>
parents:
31294
diff
changeset
|
85 | |
|
d6ad5be6427a
The Offline Message Emulation plugin now adds a note that the message
Mark Doliner <markdoliner@pidgin.im>
parents:
31294
diff
changeset
|
86 | temp = g_strdup_printf("(%s) %s", _("Offline message"), |
|
d6ad5be6427a
The Offline Message Emulation plugin now adds a note that the message
Mark Doliner <markdoliner@pidgin.im>
parents:
31294
diff
changeset
|
87 | offline->message); |
|
d6ad5be6427a
The Offline Message Emulation plugin now adds a note that the message
Mark Doliner <markdoliner@pidgin.im>
parents:
31294
diff
changeset
|
88 | purple_pounce_action_set_attribute(pounce, "send-message", "message", |
|
d6ad5be6427a
The Offline Message Emulation plugin now adds a note that the message
Mark Doliner <markdoliner@pidgin.im>
parents:
31294
diff
changeset
|
89 | temp); |
|
d6ad5be6427a
The Offline Message Emulation plugin now adds a note that the message
Mark Doliner <markdoliner@pidgin.im>
parents:
31294
diff
changeset
|
90 | g_free(temp); |
|
31294
73607ab89c6f
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
27525
diff
changeset
|
91 | |
| 15230 | 92 | conv = offline->conv; |
|
36089
c035b9a63457
Use purple_conversation_write_system_message where appropriate
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
36088
diff
changeset
|
93 | if (!g_object_get_data(G_OBJECT(conv), "plugin_pack:offlinemsg")) { |
|
c035b9a63457
Use purple_conversation_write_system_message where appropriate
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
36088
diff
changeset
|
94 | purple_conversation_write_system_message(conv, |
|
c035b9a63457
Use purple_conversation_write_system_message where appropriate
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
36088
diff
changeset
|
95 | _("The rest of the messages will be saved " |
|
c035b9a63457
Use purple_conversation_write_system_message where appropriate
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
36088
diff
changeset
|
96 | "as pounces. You can edit/delete the pounce from the `Buddy " |
|
c035b9a63457
Use purple_conversation_write_system_message where appropriate
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
36088
diff
changeset
|
97 | "Pounce' dialog."), 0); |
|
c035b9a63457
Use purple_conversation_write_system_message where appropriate
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
36088
diff
changeset
|
98 | } |
|
34678
40a30f74a7b8
Removed purple_conversation_[gs]et_data(). Used g_object_[gs]et_data() instead.
Ankit Vani <a@nevitus.org>
parents:
34652
diff
changeset
|
99 | g_object_set_data(G_OBJECT(conv), "plugin_pack:offlinemsg", |
| 15230 | 100 | GINT_TO_POINTER(OFFLINE_MSG_YES)); |
| 101 | ||
|
36088
4c386387f6f3
Switch purple_conversation_write_message to PurpleMessage
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
36079
diff
changeset
|
102 | /* TODO: use a reference to a PurpleMessage */ |
|
36098
4951752ad038
Split PurpleMessage into incoming, outgoing and system
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
36089
diff
changeset
|
103 | purple_conversation_write_message(conv, |
|
4951752ad038
Split PurpleMessage into incoming, outgoing and system
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
36089
diff
changeset
|
104 | purple_message_new_outgoing(offline->who, offline->message, 0)); |
| 15230 | 105 | |
| 106 | discard_data(offline); | |
| 107 | } | |
| 108 | ||
| 109 | static void | |
|
36079
2e449140fe0b
Switch sending-im-msg to PurpleMessage
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35045
diff
changeset
|
110 | sending_msg_cb(PurpleAccount *account, PurpleMessage *msg, gpointer handle) |
| 15230 | 111 | { |
| 15884 | 112 | PurpleBuddy *buddy; |
| 15230 | 113 | OfflineMsg *offline; |
| 15884 | 114 | PurpleConversation *conv; |
| 15230 | 115 | OfflineMessageSetting setting; |
|
36098
4951752ad038
Split PurpleMessage into incoming, outgoing and system
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
36089
diff
changeset
|
116 | const gchar *who = purple_message_get_recipient(msg); |
| 15230 | 117 | |
|
36079
2e449140fe0b
Switch sending-im-msg to PurpleMessage
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35045
diff
changeset
|
118 | if (purple_message_is_empty(msg)) |
|
19825
9f31b80db6a9
Catch the event at the very end to make sure other plugins can play with it
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16745
diff
changeset
|
119 | return; |
|
9f31b80db6a9
Catch the event at the very end to make sure other plugins can play with it
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16745
diff
changeset
|
120 | |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34706
diff
changeset
|
121 | buddy = purple_blist_find_buddy(account, who); |
| 15230 | 122 | if (!buddy) |
| 123 | return; | |
| 124 | ||
| 15884 | 125 | if (purple_presence_is_online(purple_buddy_get_presence(buddy))) |
| 15230 | 126 | return; |
| 127 | ||
| 15884 | 128 | if (purple_account_supports_offline_message(account, buddy)) |
| 15230 | 129 | { |
|
19832
84b69b21672b
Patch from QuLogic. Fixes #2903 ('Missing newlines in debug messages.')
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19825
diff
changeset
|
130 | purple_debug_info("offlinemsg", "Account \"%s\" supports offline messages.\n", |
| 15884 | 131 | purple_account_get_username(account)); |
| 15230 | 132 | return; |
| 133 | } | |
| 134 | ||
|
34632
ebe6b2a60305
Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents:
34628
diff
changeset
|
135 | conv = PURPLE_CONVERSATION(purple_conversations_find_im_with_account(who, account)); |
| 15230 | 136 | |
| 137 | if (!conv) | |
| 138 | return; | |
| 139 | ||
|
34678
40a30f74a7b8
Removed purple_conversation_[gs]et_data(). Used g_object_[gs]et_data() instead.
Ankit Vani <a@nevitus.org>
parents:
34652
diff
changeset
|
140 | setting = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(conv), "plugin_pack:offlinemsg")); |
| 15230 | 141 | if (setting == OFFLINE_MSG_NO) |
| 142 | return; | |
| 143 | ||
| 144 | offline = g_new0(OfflineMsg, 1); | |
| 145 | offline->conv = conv; | |
| 146 | offline->account = account; | |
| 147 | offline->who = g_strdup(who); | |
|
36079
2e449140fe0b
Switch sending-im-msg to PurpleMessage
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35045
diff
changeset
|
148 | offline->message = g_strdup(purple_message_get_contents(msg)); |
|
2e449140fe0b
Switch sending-im-msg to PurpleMessage
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35045
diff
changeset
|
149 | purple_message_set_contents(msg, NULL); |
| 15230 | 150 | |
| 15884 | 151 | if (purple_prefs_get_bool(PREF_ALWAYS) || setting == OFFLINE_MSG_YES) |
| 15230 | 152 | record_pounce(offline); |
| 153 | else if (setting == OFFLINE_MSG_NONE) | |
| 154 | { | |
| 155 | char *ask; | |
| 156 | ask = g_strdup_printf(_("\"%s\" is currently offline. Do you want to save the " | |
| 157 | "rest of the messages in a pounce and automatically send them " | |
| 158 | "when \"%s\" logs back in?"), who, who); | |
|
31294
73607ab89c6f
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
27525
diff
changeset
|
159 | |
|
21175
c6d76b49c206
disapproval of revision '8ba833993a115415727bb1b70362e0bd1603c169'
Richard Laager <rlaager@pidgin.im>
parents:
21174
diff
changeset
|
160 | purple_request_action(handle, _("Offline Message"), ask, |
| 15230 | 161 | _("You can edit/delete the pounce from the `Buddy Pounces' dialog"), |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
32971
diff
changeset
|
162 | 0, purple_request_cpar_from_conversation(offline->conv), |
|
21175
c6d76b49c206
disapproval of revision '8ba833993a115415727bb1b70362e0bd1603c169'
Richard Laager <rlaager@pidgin.im>
parents:
21174
diff
changeset
|
163 | offline, 2, |
| 15230 | 164 | _("Yes"), record_pounce, |
| 165 | _("No"), cancel_poune); | |
| 166 | g_free(ask); | |
| 167 | } | |
|
39464
e8cb99e0d91f
Fix some leaks in libpurple.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37148
diff
changeset
|
168 | else |
|
e8cb99e0d91f
Fix some leaks in libpurple.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37148
diff
changeset
|
169 | { |
|
e8cb99e0d91f
Fix some leaks in libpurple.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37148
diff
changeset
|
170 | g_warn_if_reached(); |
|
e8cb99e0d91f
Fix some leaks in libpurple.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37148
diff
changeset
|
171 | g_free(offline); |
|
e8cb99e0d91f
Fix some leaks in libpurple.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37148
diff
changeset
|
172 | } |
| 15230 | 173 | } |
| 174 | ||
| 15884 | 175 | static PurplePluginPrefFrame * |
| 176 | get_plugin_pref_frame(PurplePlugin *plugin) | |
| 15230 | 177 | { |
| 15884 | 178 | PurplePluginPrefFrame *frame; |
| 179 | PurplePluginPref *pref; | |
| 15230 | 180 | |
| 15884 | 181 | frame = purple_plugin_pref_frame_new(); |
| 15230 | 182 | |
| 15884 | 183 | pref = purple_plugin_pref_new_with_label(_("Save offline messages in pounce")); |
| 184 | purple_plugin_pref_frame_add(frame, pref); | |
| 15230 | 185 | |
| 15884 | 186 | pref = purple_plugin_pref_new_with_name_and_label(PREF_ALWAYS, |
| 15230 | 187 | _("Do not ask. Always save in pounce.")); |
| 15884 | 188 | purple_plugin_pref_frame_add(frame, pref); |
| 15230 | 189 | |
| 190 | return frame; | |
| 191 | } | |
| 192 | ||
|
36747
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
193 | static PurplePluginInfo * |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
194 | plugin_query(GError **error) |
| 15230 | 195 | { |
|
36747
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
196 | const gchar * const authors[] = PLUGIN_AUTHORS; |
| 15230 | 197 | |
|
36747
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
198 | return purple_plugin_info_new( |
|
36934
e7268aeb3b89
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
Ankit Vani <a@nevitus.org>
parents:
36929
diff
changeset
|
199 | "id", PLUGIN_ID, |
|
e7268aeb3b89
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
Ankit Vani <a@nevitus.org>
parents:
36929
diff
changeset
|
200 | "name", PLUGIN_NAME, |
|
e7268aeb3b89
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
Ankit Vani <a@nevitus.org>
parents:
36929
diff
changeset
|
201 | "version", DISPLAY_VERSION, |
|
e7268aeb3b89
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
Ankit Vani <a@nevitus.org>
parents:
36929
diff
changeset
|
202 | "category", PLUGIN_CATEGORY, |
|
e7268aeb3b89
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
Ankit Vani <a@nevitus.org>
parents:
36929
diff
changeset
|
203 | "summary", PLUGIN_SUMMARY, |
|
e7268aeb3b89
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
Ankit Vani <a@nevitus.org>
parents:
36929
diff
changeset
|
204 | "description", PLUGIN_DESCRIPTION, |
|
e7268aeb3b89
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
Ankit Vani <a@nevitus.org>
parents:
36929
diff
changeset
|
205 | "authors", authors, |
|
e7268aeb3b89
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
Ankit Vani <a@nevitus.org>
parents:
36929
diff
changeset
|
206 | "website", PURPLE_WEBSITE, |
|
e7268aeb3b89
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
Ankit Vani <a@nevitus.org>
parents:
36929
diff
changeset
|
207 | "abi-version", PURPLE_ABI_VERSION, |
|
e7268aeb3b89
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
Ankit Vani <a@nevitus.org>
parents:
36929
diff
changeset
|
208 | "pref-frame-cb", get_plugin_pref_frame, |
|
36747
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
209 | NULL |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
210 | ); |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
211 | } |
| 15230 | 212 | |
|
36747
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
213 | static gboolean |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
214 | plugin_load(PurplePlugin *plugin, GError **error) |
| 15230 | 215 | { |
| 15884 | 216 | purple_prefs_add_none(PREF_PREFIX); |
| 217 | purple_prefs_add_bool(PREF_ALWAYS, FALSE); | |
|
36747
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
218 | |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
219 | purple_signal_connect_priority(purple_conversations_get_handle(), "sending-im-msg", |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
220 | plugin, PURPLE_CALLBACK(sending_msg_cb), plugin, PURPLE_SIGNAL_PRIORITY_HIGHEST); |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
221 | return TRUE; |
| 15230 | 222 | } |
| 223 | ||
|
36747
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
224 | static gboolean |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
225 | plugin_unload(PurplePlugin *plugin, GError **error) |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
226 | { |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
227 | return TRUE; |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
228 | } |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
229 | |
|
0b84912ce764
Refactored rest of libpurple C plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34940
diff
changeset
|
230 | PURPLE_PLUGIN_INIT(PLUGIN_STATIC_NAME, plugin_query, plugin_load, plugin_unload); |