From 73792d724db7a3b3410d27e0e07350c67ba072f7 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 13 Aug 2022 00:05:00 +0100 Subject: [PATCH] Filter nicknames for notices --- core/views/ui/drilldown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index f7e6b88..488e5cb 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -259,7 +259,7 @@ class DrilldownContextModal(APIView): if "mtype" not in query_params: query_params["mtype"] = None if request.user.is_superuser: - if query_params["type"] == "query": + if query_params["type"] in ["query", "notice"]: print("BOT NICK", query_params["channel"]) print("QUERY NICK", query_params["nick"]) nicks = [query_params["channel"], query_params["nick"]]