Pass category arg to _set_quotes in quote_add (quotes.py)

This commit is contained in:
jesopo 2019-01-26 16:06:15 +00:00
parent f217c5d192
commit 6affadd306

View file

@ -23,7 +23,7 @@ class Module(ModuleManager.BaseModule):
if category and quote:
quotes = self._get_quotes(event["server"], category)
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")
else:
event["stderr"].write("Please provide a category AND quote")