view libpurple/plugins/mono/loader/debug-glue.c @ 27168:463ed40d4031

Deal with buddies on MSN more gracefully. Look ahead to see if we have information about the protocol of the buddy, because by the time we process the protocol, we may have done too many other things, e.g. update status, set idleness etc., which means the real buddy doesn't get updated properly.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 24 Jun 2009 08:17:33 +0000
parents fd5dfd3c04b5
children a8cc50c2279f
line wrap: on
line source

#include "mono-glue.h"
#include "debug.h"

void purple_debug_glue(int type, MonoString *cat, MonoString *str)
{
	char *ccat;
	char *cstr;
	
	ccat = mono_string_to_utf8(cat);
	cstr = mono_string_to_utf8(str);
	
	purple_debug(type, ccat, "%s", cstr);
	
	g_free(ccat);
	g_free(cstr);
}