From 9092fb7b8399c190474c019debbab211f2a6467c Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 22 Sep 2003 11:04:39 +0000 Subject: [PATCH] Fixed bug with lines not ending in \n because of the optimization added earlier, storing the original string form as originally received. --- src/ircmsgs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ircmsgs.py b/src/ircmsgs.py index 2cdc6a121..e4cf177c1 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -90,6 +90,8 @@ class IrcMsg(object): if s: originalString = s try: + if not s.endswith('\n'): + s += '\n' self._str = s if s[0] == ':': self.prefix, s = s[1:].split(None, 1)