attempt to attach grabbed quotes to account instead of nickname
This commit is contained in:
parent
269489b583
commit
3ff3ec099e
1 changed files with 7 additions and 1 deletions
|
@ -131,7 +131,13 @@ class Module(ModuleManager.BaseModule):
|
|||
text = " ".join(lines_str)
|
||||
|
||||
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")
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue