summaryrefslogtreecommitdiff
path: root/modules/quotes.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/quotes.py')
-rw-r--r--modules/quotes.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/quotes.py b/modules/quotes.py
index a5060cd..772701c 100644
--- a/modules/quotes.py
+++ b/modules/quotes.py
@@ -201,13 +201,10 @@ quote_handler = IRCHandler()
class Module:
def __init__(self, bot):
self.irc = bot
+ self.irc.register_keyword('!quote', self)
- def __call__(self, nick, channel, msg):
- if not msg.startswith('!quote'):
- return
+ def keyword(self, nick, channel, kw, msg):
args = msg.split(' ')
- if msg.startswith('!quote'):
- args = args[1:]
cmd = args[0] if len(args) and len(args[0].strip()) else 'random'
args = args[1:]