From 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 30 Sep 2018 17:29:09 +0100 Subject: Switch to using docstring for usage, permission and require_mode --- modules/to.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/to.py') diff --git a/modules/to.py b/modules/to.py index 2bfe410d..2136d0c0 100644 --- a/modules/to.py +++ b/modules/to.py @@ -11,11 +11,12 @@ class Module(ModuleManager.BaseModule): if messages: event["channel"].del_user_setting(event["user"].get_id(), "to") - @Utils.hook("received.command.to", min_args=2, channel_only=True, - usage=" ") + @Utils.hook("received.command.to", min_args=2, channel_only=True) def to(self, event): """ - Relay a message to a user the next time they talk in this channel" + :help: Relay a message to a user the next time they talk in this + channel + :usage: """ target_user = event["server"].get_user(event["args_split"][0]) messages = event["target"].get_user_setting(target_user.get_id(), -- cgit v1.3.1-10-gc9f91