actually use args var

This commit is contained in:
jesopo 2020-01-22 16:32:31 +00:00
parent 175e8c0a16
commit e7a1b157de

View file

@ -35,7 +35,7 @@ class Module(ModuleManager.BaseModule):
offset = random.randint(0, len(COLORS)) offset = random.randint(0, len(COLORS))
out = "" out = ""
for i, c in enumerate(event["args"]): for i, c in enumerate(args):
color = COLORS[(i+offset)%len(COLORS)] color = COLORS[(i+offset)%len(COLORS)]
out += utils.irc.color(c, color, terminate=False) out += utils.irc.color(c, color, terminate=False)
event["stdout"].write(out) event["stdout"].write(out)