diff options
| author | 2018-10-03 13:22:37 +0100 | |
|---|---|---|
| committer | 2018-10-03 13:22:37 +0100 | |
| commit | 69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch) | |
| tree | 11aa30f2a357f3be23ad97315dae3df051455cbe /modules/to.py | |
| parent | Add a way to not add a user automatically in IRCServer.get_user (diff) | |
| signature | ||
Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
Diffstat (limited to 'modules/to.py')
| -rw-r--r-- | modules/to.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/to.py b/modules/to.py index 2136d0c0..146c63ee 100644 --- a/modules/to.py +++ b/modules/to.py @@ -1,7 +1,7 @@ -from src import EventManager, ModuleManager, Utils +from src import EventManager, ModuleManager, utils class Module(ModuleManager.BaseModule): - @Utils.hook("received.message.channel", priority=EventManager.PRIORITY_HIGH) + @utils.hook("received.message.channel", priority=EventManager.PRIORITY_HIGH) def channel_message(self, event): messages = event["channel"].get_user_setting(event["user"].get_id(), "to", []) @@ -11,7 +11,7 @@ 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) + @utils.hook("received.command.to", min_args=2, channel_only=True) def to(self, event): """ :help: Relay a message to a user the next time they talk in this |
