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:
parent
f741a73ad4
commit
bb5d6a730b
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user