From f217c5d1923832c72cfa2fc7a2176a82296ed8d7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 26 Jan 2019 16:03:40 +0000 Subject: [PATCH] Quote should be saved with saver and timestamp (quotes.py) --- modules/quotes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/quotes.py b/modules/quotes.py index 900a3822..8683af68 100644 --- a/modules/quotes.py +++ b/modules/quotes.py @@ -99,10 +99,12 @@ class Module(ModuleManager.BaseModule): line = event["target"].buffer.find_from(event["args_split"][0]) if line: quotes = self._get_quotes(event["server"], line.sender) + text = None if line.action: - quotes.append("* %s %s" % (line.sender, line.message)) + text = "* %s %s" % (line.sender, line.message) else: - quotes.append("<%s> %s" % (line.sender, line.message)) + text = "<%s> %s" % (line.sender, line.message) + quotes.append([event["user"].name, int(time.time()), text]) self._set_quotes(event["server"], line.sender, quotes) event["stdout"].write("Quote added") else: