summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-02 17:45:19 -0500
committerJune McEnroe <june@causal.agency>2020-02-02 17:45:19 -0500
commitaec28a9327c963ffda0a438107b9442bc90b84e4 (patch)
tree2eb53f4fc61e803e320dfe95bc56967aefc1c6b6
parentSave NETWORK, CHANTYPES, PREFIX from ISUPPORT (diff)
downloadcatgirl-aec28a9327c963ffda0a438107b9442bc90b84e4.tar.gz
catgirl-aec28a9327c963ffda0a438107b9442bc90b84e4.zip
Check queries against chanTypes
Diffstat (limited to '')
-rw-r--r--handle.c2
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);