diff options
| author | 2019-04-24 15:07:02 +0100 | |
|---|---|---|
| committer | 2019-04-24 15:07:02 +0100 | |
| commit | df42f1d9c51e3c2044d221dc10ef3b8e10799aa2 (patch) | |
| tree | 546a88a032831aa78db3d552ddfbe370be96ee4f /modules/title.py | |
| parent | Add ability to track (and show) who first send a specific link that was (diff) | |
| signature | ||
Store full non-hashed auto-title url in setting value
Diffstat (limited to 'modules/title.py')
| -rw-r--r-- | modules/title.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/title.py b/modules/title.py index 2b55c257..2c597373 100644 --- a/modules/title.py +++ b/modules/title.py @@ -44,15 +44,15 @@ class Module(ModuleManager.BaseModule): first_details = event["channel"].get_setting(setting, None) if first_details: - first_nickname, first_timestamp = first_details + first_nickname, first_timestamp, _ = first_details timestamp_parsed = utils.iso8601_parse(first_timestamp) timestamp_human = utils.datetime_human(timestamp_parsed) message = "%s (first posted by %s at %s)" % (title, first_nickname, timestamp_human) else: event["channel"].set_setting(setting, - [event["user"].nickname, - utils.iso8601_format_now()]) + [event["user"].nickname, utils.iso8601_format_now(), + url]) self.events.on("send.stdout").call(target=event["channel"], |
