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