From b61316d8050cf3716e370c8494a0d68f8b5787e2 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 15 Aug 2022 19:24:42 +0100 Subject: [PATCH] Detect queries if nick and channel are the same --- api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views.py b/api/views.py index 0ad5f0b..443e546 100644 --- a/api/views.py +++ b/api/views.py @@ -615,7 +615,7 @@ class API(object): in_query = True else: nick = None - if channel == main.IRCPool[name].nickname: + if channel == main.IRCPool[name].nickname or nick == channel: in_query = True if not nick: return dumps({"success": False, "reason": "no nick specified to query"})