diff libpurple/protocols/myspace/message.c @ 17944:c109b7f1c739

Allow setting status string messages. Known bug: custom status messages always make you go away, instead of to what status primitive you set it to be.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Thu, 12 Jul 2007 03:21:07 +0000
parents 231b87b76da4
children 6d1d86ab6a59
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.c	Wed Jul 11 05:23:19 2007 +0000
+++ b/libpurple/protocols/myspace/message.c	Thu Jul 12 03:21:07 2007 +0000
@@ -249,6 +249,7 @@
 	gboolean success;
 	
 	raw = msim_msg_pack(msg);
+    g_return_val_if_fail(raw != NULL, FALSE);
 	success = msim_send_raw(session, raw);
 	g_free(raw);
 
@@ -478,6 +479,8 @@
 				"\n", "<MsimMessage: \n", "\n/MsimMessage>");
 	}
 
+    g_return_if_fail(debug_str != NULL);
+
 	purple_debug_info("msim", fmt_string, debug_str);
 
 	g_free(debug_str);