--- a/neutron.py Tue May 01 13:33:46 2007 +0200
+++ b/neutron.py Tue May 01 13:34:55 2007 +0200
@@ -380,6 +380,12 @@
command = string.lower(string.split(body)[0])
if body.count(' '):
parameters = body[(body.find(' ') + 1):]
+ if command == 'mcbot:' and parameters > 1:
+ command = string.lower(string.split(body)[1])
+ if parameters.count(' '):
+ parameters = parameters[(parameters.find(' ') + 1):]
+ else:
+ parameters = ''
if not msg.timestamp:
if msgtype == 'groupchat':
call_message_handlers('public', [fromjid, fromjid.getStripped(), fromjid.getResource()], body)