allow for newlines in DrBotIRC.reply(), split on them for multiple lines of output
This commit is contained in:
parent
a2ac73325c
commit
649e183337
|
@ -185,7 +185,9 @@ class DrBotIRC(irclib.IRC):
|
||||||
if replypath is None:
|
if replypath is None:
|
||||||
return replystr
|
return replystr
|
||||||
else:
|
else:
|
||||||
connection.privmsg(replypath, replystr)
|
replies = replystr.split('\n')
|
||||||
|
for reply in replies:
|
||||||
|
connection.privmsg(replypath, reply)
|
||||||
if stop_responding:
|
if stop_responding:
|
||||||
return "NO MORE"
|
return "NO MORE"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue