Changeset - bde0e7c3eb50
[Not reviewed]
0 2 0
HanzZ - 13 years ago 2012-04-03 20:17:04
hanzz.k@gmail.com
Fetch gadu-gadu buddies. Fixes #252
2 files changed with 23 insertions and 3 deletions:
0 comments (0 inline, 0 general)
backends/libpurple/main.cpp
Show inline comments
 
@@ -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) {
spectrum/src/sample.cfg
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)