From df42f1d9c51e3c2044d221dc10ef3b8e10799aa2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 24 Apr 2019 15:07:02 +0100 Subject: [PATCH] Store full non-hashed auto-title url in setting value --- modules/title.py | 6 +++--- 1 file 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"],