masks should be a list, otherwise we iterate a string

This commit is contained in:
jesopo 2020-02-26 16:47:30 +00:00
parent fef1c47626
commit 725c1d3bfa

View file

@ -422,7 +422,7 @@ class Module(ModuleManager.BaseModule):
users = args = []
if event["spec"][1][0] == "user":
masks = self._get_hostmask(event["spec"][0], event["spec"][1][1])
masks = [self._get_hostmask(event["spec"][0], event["spec"][1][1])]
elif event["spec"][1][0] == "word":
masks = self._list_query_event(event["spec"][0],
event["spec"][1][1], mode, prefix)