about 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);
f5991290eab34150d2ce0160b55152db3d&follow=1'>Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe NULs in the input cause an infinite loop in htmlEscape, not to mention regexes obviously not working, etc. 2019-12-16Post "cgit setup"June McEnroe