Detect queries if nick and channel are the same
This commit is contained in:
parent
a65098c222
commit
b61316d805
|
@ -615,7 +615,7 @@ class API(object):
|
||||||
in_query = True
|
in_query = True
|
||||||
else:
|
else:
|
||||||
nick = None
|
nick = None
|
||||||
if channel == main.IRCPool[name].nickname:
|
if channel == main.IRCPool[name].nickname or nick == channel:
|
||||||
in_query = True
|
in_query = True
|
||||||
if not nick:
|
if not nick:
|
||||||
return dumps({"success": False, "reason": "no nick specified to query"})
|
return dumps({"success": False, "reason": "no nick specified to query"})
|
||||||
|
|
Loading…
Reference in New Issue