remove !timezone as !time now shows UTC offset

This commit is contained in:
jesopo 2019-11-04 10:11:57 +00:00
parent 9de95d17e5
commit 423e6b00b6

View file

@ -73,20 +73,3 @@ class Module(ModuleManager.BaseModule):
out = NOLOCATION_NAME out = NOLOCATION_NAME
event["stderr"].write(out % 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)