From 07e3bbe9ba8277b1fdb8c474ddbbacbe4fa0c5ba Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 7 Oct 2012 03:26:47 -0400 Subject: [PATCH] Properly \n-terminate each send. This simple change is slightly wrong in a way that IRC servers hide - strictly speaking we should not append a '\n' to the very last segment. --- irkerd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irkerd b/irkerd index 321bb5f..9b7e8d2 100755 --- a/irkerd +++ b/irkerd @@ -250,7 +250,7 @@ class Connection: self.connection.join(channel) self.irker.debug(1, "joining %s on %s." % (channel, self.servername)) for segment in message.split("\n"): - self.connection.privmsg(channel, segment) + self.connection.privmsg(channel, segment + "\n") time.sleep(ANTI_FLOOD_DELAY) self.last_xmit = self.channels_joined[channel] = time.time() self.irker.debug(1, "XMIT_TTL bump (%s transmission) at %s" % (self.servername, time.asctime())) -- 2.26.2