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.
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()))