1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2000-06-01 17:31:03 +00:00 committed by cras
parent f741a73ad4
commit bb5d6a730b

View File

@ -351,7 +351,7 @@ static int sig_set_user_mode(IRC_SERVER_REC *server)
modes_join(server->usermode, mode); modes_join(server->usermode, mode);
if (server->usermode != NULL && strcmp(newmode, server->usermode) != 0) if (server->usermode != NULL && strcmp(newmode, server->usermode) != 0)
irc_send_cmdv(server, "MODE %s -%s+%s", server->nick, server->usermode, mode); irc_send_cmdv(server, "MODE %s -%s+%s", server->nick, server->usermode, mode);
g_free(newmode); g_free_not_null(newmode);
return 0; return 0;
} }