diff options
| author | 2019-12-04 10:43:53 +0000 | |
|---|---|---|
| committer | 2019-12-04 10:43:53 +0000 | |
| commit | 3ff3ec099ea3b923cf72b0486645be451c248563 (patch) | |
| tree | 0de64c3173d2ab3589c449611d3a8f84b60eb356 | |
| parent | we shouldn't be setting seen-info on every channel per each channel message (diff) | |
| signature | ||
attempt to attach grabbed quotes to account instead of nickname
| -rw-r--r-- | modules/quotes.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/quotes.py b/modules/quotes.py index 0bf0139a..839e76b4 100644 --- a/modules/quotes.py +++ b/modules/quotes.py @@ -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: |
