--- a/rollbot.py Wed May 11 00:09:34 2016 +0800
+++ b/rollbot.py Wed May 11 14:43:23 2016 +0800
if msg['type'] not in ('chat', 'normal'):
- rbody = self.respond(msg['body'].strip())
+ mbody = msg['body'].lstrip()
+ if mbody.startswith(self.prefix):
+ mbody = mbody[len(self.prefix):]
+ mbody = mbody.lstrip(' ')
+ rbody = self.respond(mbody)
- mbody = mbody.lstrip(':, \t')
+ mbody = mbody.lstrip(':, ')
rbody = self.respond(mbody)
rbody = '%s: %s' % (msg['mucnick'], rbody)