diff --git a/src/irc/bot/bot-events.c b/src/irc/bot/bot-events.c index ebbe0660..7cba44ac 100644 --- a/src/irc/bot/bot-events.c +++ b/src/irc/bot/bot-events.c @@ -120,7 +120,7 @@ static void parse_channel_mode(CHANNEL_REC *channel, const char *mode, continue; } - if (!HAS_MODE_ARG(*curmode)) + if (!HAS_MODE_ARG(type, *curmode)) ptr = NULL; else { ptr = cmd_get_param(&modestr);