Fetch gadu-gadu buddies. Fixes #252

This commit is contained in:
HanzZ 2012-04-03 20:17:04 +02:00
parent d7fb0da496
commit bde0e7c3eb
2 changed files with 23 additions and 3 deletions

View file

@ -1447,6 +1447,26 @@ static void signed_on(PurpleConnection *gc, gpointer unused) {
// force returning of memory chunks allocated by libxml2 to kernel
malloc_trim(0);
#endif
PurplePlugin *plugin = gc && PURPLE_CONNECTION_IS_CONNECTED(gc) ? gc->prpl : NULL;
if (plugin && PURPLE_PLUGIN_HAS_ACTIONS(plugin)) {
PurplePluginAction *action = NULL;
GList *actions, *l;
actions = PURPLE_PLUGIN_ACTIONS(plugin, gc);
for (l = actions; l != NULL; l = l->next) {
if (l->data) {
action = (PurplePluginAction *) l->data;
action->plugin = plugin;
action->context = gc;
if ((std::string) action->label == "Download buddylist from Server") {
action->callback(action);
}
purple_plugin_action_free(action);
}
}
}
}
static void printDebug(PurpleDebugLevel level, const char *category, const char *arg_s) {

View file

@ -13,9 +13,9 @@ admin_password=test
#cert=server.pfx #patch to PKCS#12 certificate
#cert_password=test #password to that certificate if any
users_per_backend=10
#backend=../..//backends/libpurple/spectrum2_libpurple_backend
backend=../../backends/template/spectrum2_template_backend
protocol=prpl-xmpp
backend=../..//backends/libpurple/spectrum2_libpurple_backend
#backend=../../backends/template/spectrum2_template_backend
protocol=prpl-gg
#protocol=prpl-msn
#protocol=any
#protocol=prpl-icq