1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Fixed bug where usermode was not sent correctly

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3681 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Valentin Batz 2004-11-19 17:25:18 +00:00 committed by vb
parent f7e12d390a
commit ed88bc5e42

View File

@ -498,7 +498,8 @@ static int sig_set_user_mode(IRC_SERVER_REC *server)
more trouble than worth. (eg. we don't want to remove
some good default server modes, but we don't want to
set back +r, etc..) */
args = g_strdup_printf("%s %s", server->nick, mode);
args = g_strdup_printf((*mode == '+' || *mode == '-') ? "%s %s" :
"%s +%s", server->nick, mode);
signal_emit("command mode", 3, args, server, NULL);
g_free(args);
}