From a43bb5e861e00317e05477728c968ccf736819f6 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 15 Aug 2022 19:28:52 +0100 Subject: [PATCH] Search the right field for ZNC modals --- core/lib/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/context.py b/core/lib/context.py index 0850168..1976fda 100644 --- a/core/lib/context.py +++ b/core/lib/context.py @@ -37,7 +37,7 @@ def construct_query(index, net, channel, src, num, size, type=None, nicks=None): extra_should.append({"match": {"type": "self"}}) extra_should2.append({"match": {"type": "znc"}}) - extra_should2.append({"match": {"channel": channel}}) + extra_should2.append({"match": {"nick": channel}}) elif type == "auth": if {"match": {"channel": channel}} in extra_must: extra_must.remove({"match": {"channel": channel}})