Quote should be saved with saver and timestamp (quotes.py)
This commit is contained in:
parent
eb5c685128
commit
f217c5d192
1 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue