attempt to attach grabbed quotes to account instead of nickname

This commit is contained in:
jesopo 2019-12-04 10:43:53 +00:00
parent 269489b583
commit 3ff3ec099e

View file

@ -131,7 +131,13 @@ class Module(ModuleManager.BaseModule):
text = " ".join(lines_str) text = " ".join(lines_str)
quotes.append([event["user"].name, int(time.time()), text]) quotes.append([event["user"].name, int(time.time()), text])
self._set_quotes(target, line.sender, quotes)
quote_category = line.sender
if event["server"].has_user(quote_category):
account = event["server"].get_user_nickname(
event["server"].get_user(qoute_category).get_id())
self._set_quotes(target, quote_category, quotes)
event["stdout"].write("Quote added") event["stdout"].write("Quote added")
else: else: