mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
f7e12d390a
commit
ed88bc5e42
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user