diff src/toc.c @ 1404:96e93119268d

[gaim-migrate @ 1414] argh committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 13 Jan 2001 08:49:15 +0000
parents bf041349b11e
children 47413c49bbee
line wrap: on
line diff
--- a/src/toc.c	Fri Jan 12 03:02:20 2001 +0000
+++ b/src/toc.c	Sat Jan 13 08:49:15 2001 +0000
@@ -46,7 +46,7 @@
 #include "pixmaps/dt_icon.xpm"
 #include "pixmaps/free_icon.xpm"
 
-#define REVISION "gaim:$Revision: 1411 $"
+#define REVISION "gaim:$Revision: 1414 $"
 
 #define TYPE_SIGNON    1
 #define TYPE_DATA      2
@@ -721,6 +721,11 @@
 	} else
 		g_snprintf(buf, MSG_LEN, "toc_set_away \"\"");
 	sflap_send(g, buf, -1, TYPE_DATA);
+	if (g->away)
+		g_free (g->away);
+	g->away = NULL;
+	if (message)
+		g->away = g_strdup (message);
 }
 
 static void toc_set_info(struct gaim_connection *g, char *info)