Send target
as batch argument
This commit is contained in:
parent
33de403685
commit
ef10207a73
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
target = event["line"].args[0]
|
||||
lines = event["line"].args[1].split("\n")
|
||||
batch = utils.irc.IRCSendBatch("bitbot.dev/multi-line", [])
|
||||
batch = utils.irc.IRCSendBatch("bitbot.dev/multi-line",
|
||||
[target])
|
||||
for line in lines:
|
||||
batch.add_line(utils.irc.protocol.privmsg(target, line))
|
||||
for line in batch.get_lines():
|
||||
|
|
Loading…
Reference in a new issue