summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-01 17:31:03 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-01 17:31:03 +0000
commitbb5d6a730ba33ebf19fa136fdf460909d9a8dd05 (patch)
tree139378506b0edb4104bec686322ac3d28d54f9ef /src
parentf741a73ad4e46e912dc95d486b6ddbb3ad738e65 (diff)
downloadirssi-bb5d6a730ba33ebf19fa136fdf460909d9a8dd05.zip
crashed when reconnecting to server that didn't automatically set
any user mode (I _did_ fix this a week ago, what happened to it?) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@264 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/server-reconnect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/server-reconnect.c b/src/irc/core/server-reconnect.c
index 3e1b993f..a89fc59f 100644
--- a/src/irc/core/server-reconnect.c
+++ b/src/irc/core/server-reconnect.c
@@ -351,7 +351,7 @@ static int sig_set_user_mode(IRC_SERVER_REC *server)
modes_join(server->usermode, mode);
if (server->usermode != NULL && strcmp(newmode, server->usermode) != 0)
irc_send_cmdv(server, "MODE %s -%s+%s", server->nick, server->usermode, mode);
- g_free(newmode);
+ g_free_not_null(newmode);
return 0;
}