Detect queries if nick and channel are the same

This commit is contained in:
Mark Veidemanis 2022-08-15 19:24:42 +01:00
parent 96de70aaf2
commit 09a5cd14ad
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -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"})