Mon, 28 Oct 2013 00:02:17 +0530
Renamed plugin info callback properties to end with "-cb", and their respective symbols.
- Renamed "preferences-frame" to "pref-frame-cb"
- Renamed "preferences-request" to "pref-request-cb"
- Renamed "get-actions" to "actions-cb"
- Renamed "finch-preferences-frame" to "finch-pref-frame-cb"
- Renamed "pidgin-config-frame" to "pidgin-config-frame-cb"
| 7543 | 1 | /* |
| 2 | * Release Notification Plugin | |
| 3 | * | |
| 4 | * Copyright (C) 2003, Nathan Walp <faceprint@faceprint.com> | |
| 5 | * | |
| 6 | * This program is free software; you can redistribute it and/or | |
| 7 | * modify it under the terms of the GNU General Public License as | |
| 8 | * published by the Free Software Foundation; either version 2 of the | |
| 9 | * License, or (at your option) any later version. | |
| 10 | * | |
| 11 | * This program is distributed in the hope that it will be useful, but | |
| 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 | * 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 | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18169
diff
changeset
|
18 | * 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:
18169
diff
changeset
|
19 | * 02111-1301, USA. |
| 7543 | 20 | */ |
| 21 | ||
| 22 | #ifdef HAVE_CONFIG_H | |
| 23 | #include <config.h> | |
| 24 | #endif | |
| 25 | ||
| 15884 | 26 | #ifndef PURPLE_PLUGINS |
| 27 | #define PURPLE_PLUGINS | |
| 7543 | 28 | #endif |
| 29 | ||
| 30 | #include "internal.h" | |
| 31 | ||
| 32 | #include <string.h> | |
| 33 | ||
| 34 | #include "connection.h" | |
| 35 | #include "core.h" | |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
36 | #include "debug.h" |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
37 | #include "gtkblist.h" |
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
38 | #include "gtkplugin.h" |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
39 | #include "gtkutils.h" |
|
33441
b69cd2bfe289
Migrate relnot plugin to new HTTP API
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33424
diff
changeset
|
40 | #include "http.h" |
| 7543 | 41 | #include "notify.h" |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
42 | #include "pidginstock.h" |
| 7543 | 43 | #include "prefs.h" |
| 44 | #include "util.h" | |
| 9943 | 45 | #include "version.h" |
| 7543 | 46 | |
| 15577 | 47 | #include "pidgin.h" |
|
15442
2ff7f5308727
I think this is all the instances of 'Gaim' within pidgin/
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
48 | |
| 7543 | 49 | /* 1 day */ |
| 50 | #define MIN_CHECK_INTERVAL 60 * 60 * 24 | |
| 51 | ||
| 52 | static void | |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
53 | release_hide() |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
54 | { |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
55 | /* No-op. We may use this method in the future to avoid showing |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
56 | * the popup twice */ |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
57 | } |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
58 | |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
59 | static void |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
60 | release_show() |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
61 | { |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
62 | purple_notify_uri(NULL, PURPLE_WEBSITE); |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
63 | } |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
64 | |
|
33441
b69cd2bfe289
Migrate relnot plugin to new HTTP API
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33424
diff
changeset
|
65 | static void version_fetch_cb(PurpleHttpConnection *hc, |
|
b69cd2bfe289
Migrate relnot plugin to new HTTP API
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33424
diff
changeset
|
66 | PurpleHttpResponse *response, gpointer user_data) |
| 7543 | 67 | { |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
68 | gchar *cur_ver; |
|
33441
b69cd2bfe289
Migrate relnot plugin to new HTTP API
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33424
diff
changeset
|
69 | const char *changelog; |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
70 | GtkWidget *release_dialog; |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
71 | |
| 7543 | 72 | GString *message; |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
73 | int i = 0; |
|
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
74 | |
|
34287
6cd0c77b1f6a
HTTP: successful is spelled with one l
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
34233
diff
changeset
|
75 | if(!purple_http_response_is_successful(response)) |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
76 | return; |
| 7543 | 77 | |
|
33626
2522d124d883
update purple_http_response_get_data to take a second parameter that is a return address for the size of the data
Gary Kramlich <grim@reaperworld.com>
parents:
33598
diff
changeset
|
78 | changelog = purple_http_response_get_data(response, NULL); |
| 7543 | 79 | |
| 80 | while(changelog[i] && changelog[i] != '\n') i++; | |
| 81 | ||
| 14281 | 82 | /* this basically means the version thing wasn't in the format we were |
| 83 | * looking for so sourceforge is probably having web server issues, and | |
| 84 | * we should try again later */ | |
| 85 | if(i == 0) | |
| 86 | return; | |
| 87 | ||
| 7543 | 88 | cur_ver = g_strndup(changelog, i); |
| 89 | ||
| 90 | message = g_string_new(""); | |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
91 | g_string_append_printf(message, _("You can upgrade to %s %s today."), |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
92 | PIDGIN_NAME, cur_ver); |
| 7543 | 93 | |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
94 | release_dialog = pidgin_make_mini_dialog( |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
95 | NULL, PIDGIN_STOCK_DIALOG_INFO, |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
96 | _("New Version Available"), |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
97 | message->str, |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
98 | NULL, |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
99 | _("Later"), PURPLE_CALLBACK(release_hide), |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
100 | _("Download Now"), PURPLE_CALLBACK(release_show), |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
101 | NULL); |
| 7543 | 102 | |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
103 | pidgin_blist_add_alert(release_dialog); |
| 7543 | 104 | |
| 105 | g_string_free(message, TRUE); | |
| 7599 | 106 | g_free(cur_ver); |
| 7543 | 107 | } |
| 108 | ||
| 109 | static void | |
| 110 | do_check(void) | |
| 111 | { | |
| 15884 | 112 | int last_check = purple_prefs_get_int("/plugins/gtk/relnot/last_check"); |
| 7543 | 113 | if(!last_check || time(NULL) - last_check > MIN_CHECK_INTERVAL) { |
|
33441
b69cd2bfe289
Migrate relnot plugin to new HTTP API
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33424
diff
changeset
|
114 | gchar *url; |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
115 | const char *host = "pidgin.im"; |
|
31294
73607ab89c6f
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
24768
diff
changeset
|
116 | |
|
33397
15591913dd85
Use https to check for updates in the Release Notification plugin. Refs #15276
Daniel Atallah <datallah@pidgin.im>
parents:
31294
diff
changeset
|
117 | url = g_strdup_printf("https://%s/version.php?version=%s&build=%s", |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
118 | host, |
|
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
119 | purple_core_get_version(), |
| 7543 | 120 | #ifdef _WIN32 |
| 15884 | 121 | "purple-win32" |
| 7543 | 122 | #else |
| 15884 | 123 | "purple" |
| 7543 | 124 | #endif |
| 7546 | 125 | ); |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
126 | |
|
34233
8bdcc4f84a5e
HTTP: introduce purple_http_get_printf, make purple_http_get consistent with it
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33626
diff
changeset
|
127 | purple_http_get(NULL, version_fetch_cb, NULL, url); |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
128 | |
|
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
129 | g_free(url); |
|
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
130 | |
| 15884 | 131 | purple_prefs_set_int("/plugins/gtk/relnot/last_check", time(NULL)); |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
132 | |
| 7543 | 133 | } |
| 134 | } | |
| 135 | ||
| 136 | static void | |
| 15884 | 137 | signed_on_cb(PurpleConnection *gc, void *data) { |
| 7543 | 138 | do_check(); |
| 139 | } | |
| 140 | ||
| 141 | /************************************************************************** | |
| 142 | * Plugin stuff | |
| 143 | **************************************************************************/ | |
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
144 | static PidginPluginInfo * |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
145 | plugin_query(GError **error) |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
146 | { |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
147 | const gchar * const authors[] = { |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
148 | "Nathan Walp <faceprint@faceprint.com>", |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
149 | NULL |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
150 | }; |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
151 | |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
152 | return pidgin_plugin_info_new( |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
153 | "id", "gtk-relnot", |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
154 | "name", N_("Release Notification"), |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
155 | "version", DISPLAY_VERSION, |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
156 | "category", N_("Notification"), |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
157 | "summary", N_("Checks periodically for new releases."), |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
158 | "description", N_("Checks periodically for new releases and notifies " |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
159 | "the user with the ChangeLog."), |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
160 | "authors", authors, |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
161 | "website", PURPLE_WEBSITE, |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
162 | "abi-version", PURPLE_ABI_VERSION, |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
163 | NULL |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
164 | ); |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
165 | } |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
166 | |
| 7543 | 167 | static gboolean |
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
168 | plugin_load(PurplePlugin *plugin, GError **error) |
| 7543 | 169 | { |
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
170 | purple_prefs_add_none("/plugins/gtk/relnot"); |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
171 | purple_prefs_add_int("/plugins/gtk/relnot/last_check", 0); |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
172 | |
| 15884 | 173 | purple_signal_connect(purple_connections_get_handle(), "signed-on", |
| 174 | plugin, PURPLE_CALLBACK(signed_on_cb), NULL); | |
| 7543 | 175 | |
| 176 | /* we don't check if we're offline */ | |
| 15884 | 177 | if(purple_connections_get_all()) |
| 7543 | 178 | do_check(); |
| 179 | ||
| 180 | return TRUE; | |
| 181 | } | |
| 182 | ||
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
183 | static gboolean |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
184 | plugin_unload(PurplePlugin *plugin, GError **error) |
| 7543 | 185 | { |
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
186 | return TRUE; |
| 7543 | 187 | } |
| 188 | ||
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
189 | PURPLE_PLUGIN_INIT(relnot, plugin_query, plugin_load, plugin_unload); |