From 5d01db8514f9b06d2e478c0d86ffafe137093d5b Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 15 Nov 2019 13:59:09 +0000 Subject: move all datetime-related code from utils/__init__ to utils.datetime --- modules/channel_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/channel_op.py') diff --git a/modules/channel_op.py b/modules/channel_op.py index a4ef250f..9d6d08d9 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -31,7 +31,7 @@ class Module(ModuleManager.BaseModule): if args and args[0][0] == "+": if len(args[1:]) < min_args: raise utils.EventError("Not enough arguments") - time = utils.from_pretty_time(args[0][1:]) + time = utils.datetime.from_pretty_time(args[0][1:]) if time == None: raise utils.EventError("Invalid timeframe") return time, args[1:] -- cgit v1.3.1-10-gc9f91