there's no 1 index arg for a batch-end

This commit is contained in:
jesopo 2019-05-22 08:42:27 +01:00
parent 6a4852d2b4
commit 82e79ac4e5

View file

@ -184,9 +184,9 @@ class Module(ModuleManager.BaseModule):
def batch(self, event):
identifier = event["args"][0]
modifier, identifier = identifier[0], identifier[1:]
batch_type = event["args"][1]
if modifier == "+":
batch_type = event["args"][1]
event["server"].batches[identifier] = utils.irc.IRCRecvBatch(
identifier, batch_type, event["tags"])
else: