changeset 2394:579f8d4347ad

[gaim-migrate @ 2407] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 30 Sep 2001 05:16:30 +0000
parents a7ecfd3f7714
children c014fd611443
files src/protocols/irc/irc.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Sat Sep 29 23:06:30 2001 +0000
+++ b/src/protocols/irc/irc.c	Sun Sep 30 05:16:30 2001 +0000
@@ -1320,12 +1320,11 @@
 	char buf[IRC_BUF_LEN];
 
 	if (gc->away)
-		g_free(gc->away);
-	gc->away = NULL;
+		gc->away = NULL;
 
 	if (msg) {
 		g_snprintf(buf, sizeof(buf), "AWAY :%s\r\n", msg);
-		gc->away = g_strdup(msg);
+		gc->away = "";
 	} else
 		g_snprintf(buf, sizeof(buf), "AWAY\r\n");
 	irc_write(idata->fd, buf, strlen(buf));