diff src/server.c @ 6019:272c761c52e3

[gaim-migrate @ 6469] So Decklin sent me a patch to fix the problem with setting profiles, and then later that day, before I got a shot at it, KingAnt fixed it himself. But Decklin's fix is better, so here it is, hand-merged with love. KingAnt also points out that Decklin Foster is a cool name. Decklin also realized (and fixed) that we were initializing static protocols after importing prefs, causing the import to fail. Thanks, Decklin. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 05 Jul 2003 01:49:07 +0000
parents fccc33d4b8fa
children d5f4ae4f9a02
line wrap: on
line diff
--- a/src/server.c	Fri Jul 04 21:29:55 2003 +0000
+++ b/src/server.c	Sat Jul 05 01:49:07 2003 +0000
@@ -315,31 +315,19 @@
 		prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
 
 	if (prpl_info && prpl_info->set_away) {
-		char *buf = NULL;
-
 		if (gc->away_state) {
 			g_free(gc->away_state);
 			gc->away_state = NULL;
 		}
 
-		if (message) {
-			buf = g_malloc(strlen(message) * 4 + 1);
-			if (gc->flags & OPT_CONN_HTML)
-				strncpy_withhtml(buf, message, strlen(message) * 4 + 1);
-			else
-				strncpy_nohtml(buf, message, strlen(message) + 1);
-		}
-
-		prpl_info->set_away(gc, state, buf);
+		prpl_info->set_away(gc, state, message);
 
 		if (gc->away && state) {
 			gc->away_state = g_strdup(state);
 		}
 
-		gaim_event_broadcast(event_away, gc, state, buf);
+		gaim_event_broadcast(event_away, gc, state, message);
 
-		if (buf)
-			g_free(buf);
 	}
 
 	system_log(log_away, gc, NULL, OPT_LOG_BUDDY_AWAY | OPT_LOG_MY_SIGNON);