From aec28a9327c963ffda0a438107b9442bc90b84e4 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 2 Feb 2020 17:45:19 -0500 Subject: [PATCH] Check queries against chanTypes --- handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle.c b/handle.c index 2766cc8..688dcdb 100644 --- a/handle.c +++ b/handle.c @@ -203,7 +203,7 @@ static bool isAction(struct Message *msg) { static void handlePrivmsg(struct Message *msg) { require(msg, true, 2); - bool query = msg->params[0][0] != '#'; // FIXME: CHANTYPES. + bool query = !strchr(self.chanTypes, msg->params[0][0]); bool network = query && strchr(msg->nick, '.'); bool notice = (msg->cmd[0] == 'N'); bool action = isAction(msg);