Pass category
arg to _set_quotes
in quote_add
(quotes.py)
This commit is contained in:
parent
f217c5d192
commit
6affadd306
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
if category and quote:
|
if category and quote:
|
||||||
quotes = self._get_quotes(event["server"], category)
|
quotes = self._get_quotes(event["server"], category)
|
||||||
quotes.append([event["user"].name, int(time.time()), quote])
|
quotes.append([event["user"].name, int(time.time()), quote])
|
||||||
self._set_quotes(event["server"], quotes)
|
self._set_quotes(event["server"], category, quotes)
|
||||||
event["stdout"].write("Quote added")
|
event["stdout"].write("Quote added")
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("Please provide a category AND quote")
|
event["stderr"].write("Please provide a category AND quote")
|
||||||
|
|
Loading…
Reference in a new issue