diff options
author | Timo Sirainen <cras@irssi.org> | 2000-04-26 10:19:57 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-04-26 10:19:57 +0000 |
commit | be0ccafd36c71ed543311b809100da5bb22c0d22 (patch) | |
tree | e5ef76670935cf2c01bf2bde2097172993b6bd45 /src | |
parent | d4195b31a24805aac38ef006c099d60228980d34 (diff) | |
download | irssi-be0ccafd36c71ed543311b809100da5bb22c0d22.zip |
same user mode problem fixed with reconnects
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@178 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/server-reconnect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/irc/core/server-reconnect.c b/src/irc/core/server-reconnect.c index 1edfe187..a00b32cf 100644 --- a/src/irc/core/server-reconnect.c +++ b/src/irc/core/server-reconnect.c @@ -335,8 +335,9 @@ static int sig_set_user_mode(IRC_SERVER_REC *server) mode = server->connrec->usermode; if (mode == NULL) return 0; - newmode = modes_join(server->usermode, mode); - if (strcmp(newmode, server->usermode) != 0) + newmode = server->usermode == NULL ? NULL : + 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); return 0; |