diff options
author | C. McEnroe | 2020-02-02 17:45:19 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-02 17:45:19 -0500 |
commit | aec28a9327c963ffda0a438107b9442bc90b84e4 (patch) | |
tree | 2eb53f4fc61e803e320dfe95bc56967aefc1c6b6 /handle.c | |
parent | 0d6a60cc6634cafe03671e9d5a1a64295c98bb9d (diff) |
Check queries against chanTypes
Diffstat (limited to 'handle.c')
-rw-r--r-- | handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |