diff options
| author | 2018-10-03 13:22:37 +0100 | |
|---|---|---|
| committer | 2018-10-03 13:22:37 +0100 | |
| commit | 69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch) | |
| tree | 11aa30f2a357f3be23ad97315dae3df051455cbe /modules/quit.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/quit.py')
| -rw-r--r-- | modules/quit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/quit.py b/modules/quit.py index 817bb041..0e823609 100644 --- a/modules/quit.py +++ b/modules/quit.py @@ -1,5 +1,5 @@ import random -from src import ModuleManager, Utils +from src import ModuleManager, utils QUOTES = { "You can build a throne with bayonets, but it's difficult to sit on it." : "Boris Yeltsin", @@ -56,7 +56,7 @@ QUOTES = { } class Module(ModuleManager.BaseModule): - @Utils.hook("get.quit-quote") + @utils.hook("get.quit-quote") def quote(self, event): quote = random.choice(list(QUOTES.items())) return (" - " if quote[1] else "").join(quote) |
