aboutsummaryrefslogtreecommitdiff
path: root/modules/tell.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tell.py')
-rw-r--r--modules/tell.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/tell.py b/modules/tell.py
index 93aaba0c..da6e30b6 100644
--- a/modules/tell.py
+++ b/modules/tell.py
@@ -8,8 +8,9 @@ class Module(ModuleManager.BaseModule):
messages = event["channel"].get_user_setting(event["user"].get_id(),
"to", [])
for nickname, message, timestamp in messages:
- timestamp_parsed = utils.datetime.iso8601_parse(timestamp)
- timestamp_human = utils.datetime.datetime_human(timestamp_parsed)
+ timestamp_parsed = utils.datetime.parse.iso8601(timestamp)
+ timestamp_human = utils.datetime.format.datetime_human(
+ timestamp_parsed)
event["channel"].send_message("%s: <%s> %s (at %s UTC)" % (
event["user"].nickname, nickname, message, timestamp_human))
if messages:
@@ -36,7 +37,7 @@ class Module(ModuleManager.BaseModule):
messages.append([event["user"].nickname,
" ".join(event["args_split"][1:]),
- utils.datetime.iso8601_format_now()])
+ utils.datetime.format.iso8601_now()])
event["target"].set_user_setting(target_user.get_id(),
"to", messages)
event["stdout"].write("Message saved")