1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

same user mode problem fixed with reconnects

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@178 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-04-26 10:19:57 +00:00 committed by cras
parent d4195b31a2
commit be0ccafd36

View File

@ -335,8 +335,9 @@ static int sig_set_user_mode(IRC_SERVER_REC *server)
mode = server->connrec->usermode; mode = server->connrec->usermode;
if (mode == NULL) return 0; if (mode == NULL) return 0;
newmode = modes_join(server->usermode, mode); newmode = server->usermode == NULL ? NULL :
if (strcmp(newmode, server->usermode) != 0) 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); irc_send_cmdv(server, "MODE %s -%s+%s", server->nick, server->usermode, mode);
g_free(newmode); g_free(newmode);
return 0; return 0;