about summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'handle.c')
-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);