From 423e6b00b6c76ada44046151d9b5197f19c3a7df Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 4 Nov 2019 10:11:57 +0000 Subject: [PATCH] remove !timezone as !time now shows UTC offset --- modules/user_time.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/modules/user_time.py b/modules/user_time.py index cdf0f44f..4f757529 100644 --- a/modules/user_time.py +++ b/modules/user_time.py @@ -73,20 +73,3 @@ class Module(ModuleManager.BaseModule): out = NOLOCATION_NAME event["stderr"].write(out % name) - - @utils.hook("received.command.timezone") - @utils.kwarg("help", "Get the timezone for you or someone else") - @utils.kwarg("usage", "[nickname]") - @utils.kwarg("require_setting", "location") - @utils.kwarg("require_setting_unless", "1") - def timezone(self, event): - type, name, timezone = self._find_setting(event) - if not timezone == None: - event["stdout"].write("%s is in %s" % (name, timezone)) - else: - out = None - if type == LocationType.USER: - out = NOLOCATION_USER - else: - out = NOLOCATION_NAME - event["stderr"].write(out % name)