diff options
author | daniel-Jones <daniel@danieljon.es> | 2018-02-16 23:39:32 +1030 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2018-02-16 23:39:32 +1030 |
commit | b7302d9dee82ee9488a7421aa3be344cabeb3a87 (patch) | |
tree | a052f4e541c1bca5381d2eb5b900f1a50925bc42 | |
parent | d0532fb7ae66fd42f632df802ee58a4e3cc92dbc (diff) | |
download | zncparse-b7302d9dee82ee9488a7421aa3be344cabeb3a87.tar.gz zncparse-b7302d9dee82ee9488a7421aa3be344cabeb3a87.zip |
minor edits
-rw-r--r-- | zncparse.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zncparse.py b/zncparse.py index 2a1eb2c..cc754d8 100644 --- a/zncparse.py +++ b/zncparse.py @@ -26,9 +26,11 @@ class Message: self.user = self.line.split("<", 1)[1].split(">", 1)[0]; except: self.user = "ZNCLOG"; - self.line = "[00:00:00] <ZNCLOG> disregard message"; + self.line = "[99:99:99] <ZNCLOG> disregard message\n"; self.time = self.line.split(" <", 1)[0].replace("[", "").replace("]", ""); self.message = self.line.split("> ", 1)[1]; + if self.message.endswith("\n"): + self.message = self.message[:-1]; def getstructuredmsg(self): self.data = {}; |