mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
match_nick_flags() didn't check that the nick actually began with a flag.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@748 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2feb56f980
commit
f9a07afa5e
@ -157,7 +157,8 @@ static int match_nick_flags(SERVER_REC *server, NICK_REC *nick, char flag)
|
||||
{
|
||||
const char *flags = server->get_nick_flags();
|
||||
|
||||
return (flag == flags[0] && nick->op) ||
|
||||
return strchr(flags, flag) == NULL ||
|
||||
(flag == flags[0] && nick->op) ||
|
||||
(flag == flags[1] && (nick->voice || nick->halfop ||
|
||||
nick->op)) ||
|
||||
(flag == flags[2] && (nick->halfop || nick->op));
|
||||
|
Loading…
Reference in New Issue
Block a user