Search the right field for ZNC modals

master
Mark Veidemanis 2 years ago
parent 95ba141301
commit a43bb5e861
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

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

Loading…
Cancel
Save