From 649e183337ea986e24d689f68e6dc257d6cd2178 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 8 Jan 2011 14:40:01 -0600 Subject: [PATCH] allow for newlines in DrBotIRC.reply(), split on them for multiple lines of output --- DrBotIRC.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DrBotIRC.py b/DrBotIRC.py index b57775f..0c8fcb1 100644 --- a/DrBotIRC.py +++ b/DrBotIRC.py @@ -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"