diff options
| author | 2018-10-03 13:22:37 +0100 | |
|---|---|---|
| committer | 2018-10-03 13:22:37 +0100 | |
| commit | 69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch) | |
| tree | 11aa30f2a357f3be23ad97315dae3df051455cbe /modules/ids.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/ids.py')
| -rw-r--r-- | modules/ids.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ids.py b/modules/ids.py index 8a71c7f5..59d1ca93 100644 --- a/modules/ids.py +++ b/modules/ids.py @@ -1,9 +1,9 @@ -from src import ModuleManager, Utils +from src import ModuleManager, utils class Module(ModuleManager.BaseModule): _name = "IDs" - @Utils.hook("received.command.myid") + @utils.hook("received.command.myid") def my_id(self, event): """ :help: Show your user ID @@ -11,7 +11,7 @@ class Module(ModuleManager.BaseModule): event["stdout"].write("%s: %d" % (event["user"].nickname, event["user"].get_id())) - @Utils.hook("received.command.channelid", channel_only=True) + @utils.hook("received.command.channelid", channel_only=True) def channel_id(self, event): """ :help: Show the current channel's ID |
