Store full non-hashed auto-title url in setting value

This commit is contained in:
jesopo 2019-04-24 15:07:02 +01:00
parent 71eb640fbd
commit df42f1d9c5

View file

@ -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"],