diff options
author | June McEnroe <june@causal.agency> | 2020-02-02 17:45:19 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-02 17:45:19 -0500 |
commit | aec28a9327c963ffda0a438107b9442bc90b84e4 (patch) | |
tree | 2eb53f4fc61e803e320dfe95bc56967aefc1c6b6 | |
parent | Save NETWORK, CHANTYPES, PREFIX from ISUPPORT (diff) | |
download | catgirl-aec28a9327c963ffda0a438107b9442bc90b84e4.tar.gz catgirl-aec28a9327c963ffda0a438107b9442bc90b84e4.zip |
Check queries against chanTypes
Diffstat (limited to '')
-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); |