summaryrefslogtreecommitdiff
path: root/src/irc/bot/bot-events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/bot/bot-events.c')
-rw-r--r--src/irc/bot/bot-events.c2
1 files changed, 1 insertions, 1 deletions
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);