aboutsummaryrefslogtreecommitdiff
path: root/modules/quotes.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-03 13:22:37 +0100
committerGravatar jesopo2018-10-03 13:22:37 +0100
commit69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch)
tree11aa30f2a357f3be23ad97315dae3df051455cbe /modules/quotes.py
parentAdd 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/quotes.py')
-rw-r--r--modules/quotes.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/quotes.py b/modules/quotes.py
index 6bfe78d7..8ee1f561 100644
--- a/modules/quotes.py
+++ b/modules/quotes.py
@@ -1,5 +1,5 @@
import random, time
-from src import ModuleManager, Utils
+from src import ModuleManager, utils
class Module(ModuleManager.BaseModule):
def category_and_quote(self, s):
@@ -7,7 +7,7 @@ class Module(ModuleManager.BaseModule):
return [part.strip() for part in s.split("=", 1)]
return None, None
- @Utils.hook("received.command.quoteadd|qadd", min_args=1)
+ @utils.hook("received.command.quoteadd|qadd", min_args=1)
def quote_add(self, event):
"""
:help: Add a quote to a category
@@ -23,7 +23,7 @@ class Module(ModuleManager.BaseModule):
else:
event["stderr"].write("Please provide a category AND quote")
- @Utils.hook("received.command.quoteget|qget", min_args=1)
+ @utils.hook("received.command.quoteget|qget", min_args=1)
def quote_get(self, event):
"""
:help: Get a quote from a ccategory
@@ -46,7 +46,7 @@ class Module(ModuleManager.BaseModule):
event["stderr"].write("Please provide a category and a "
"part of a quote to find")
- @Utils.hook("received.command.quotedel|qdel", min_args=1)
+ @utils.hook("received.command.quotedel|qdel", min_args=1)
def quote_del(self, event):
"""
:help: Delete a quote from a category
@@ -71,7 +71,7 @@ class Module(ModuleManager.BaseModule):
event["stderr"].write("Please provide a category and a quote "
"to remove")
- @Utils.hook("received.command.quote|q", min_args=1)
+ @utils.hook("received.command.quote|q", min_args=1)
def quote(self, event):
"""
:help: Get a random quote from a category