allow for newlines in DrBotIRC.reply(), split on them for multiple lines of output

This commit is contained in:
Brian S. Stephan 2011-01-08 14:40:01 -06:00
parent a2ac73325c
commit 649e183337

View File

@ -185,7 +185,9 @@ class DrBotIRC(irclib.IRC):
if replypath is None:
return replystr
else:
connection.privmsg(replypath, replystr)
replies = replystr.split('\n')
for reply in replies:
connection.privmsg(replypath, reply)
if stop_responding:
return "NO MORE"