Full transmission of multi-line messages.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 29 Sep 2012 05:43:04 +0000 (01:43 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 29 Sep 2012 05:43:04 +0000 (01:43 -0400)
This commit comment will exercise the feature.

irkerd

diff --git a/irkerd b/irkerd
index b5d897de54eba1149fc124f76d80cbe2c5ddc0d6..e5bf3000c669777436a973836158f51be26dcac5 100755 (executable)
--- 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()