event["channel"] -> event["target"]

This commit is contained in:
jesopo 2019-09-15 21:31:31 +01:00
parent 32a9a39e88
commit 621fb0b396

View file

@ -31,7 +31,7 @@ class Module(ModuleManager.BaseModule):
args = event["args_split"][:] args = event["args_split"][:]
nameserver = None nameserver = None
if self.bot.get_setting("configurable-nameservers", True): if self.bot.get_setting("configurable-nameservers", True):
nameserver = event["channel"].get_setting("dns-nameserver", nameserver = event["target"].get_setting("dns-nameserver",
event["server"].get_setting("dns-nameserver", None)) event["server"].get_setting("dns-nameserver", None))
for i, arg in enumerate(args): for i, arg in enumerate(args):
if arg[0] == "@": if arg[0] == "@":