From: Eric S. Raymond Date: Sat, 29 Sep 2012 05:43:04 +0000 (-0400) Subject: Full transmission of multi-line messages. X-Git-Tag: 1.2~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6227e67309971bd84978389b6895eee9374ab6fb;p=irker.git Full transmission of multi-line messages. This commit comment will exercise the feature. --- diff --git a/irkerd b/irkerd index b5d897d..e5bf300 100755 --- a/irkerd +++ b/irkerd @@ -186,7 +186,8 @@ class Connection: if channel[0] not in "#&+": channel = "#" + channel self.connection.join(channel) - self.connection.privmsg(channel, message) + for segment in message.split("\n"): + self.connection.privmsg(channel, segment) self.last_xmit = time.time() self.irker.debug(1, "XMIT_TTL bump (%s transmission) at %s" % (self.servername, time.asctime())) self.queue.task_done()