Ignore implict help requests in MUC rooms
authorMikael Berthe <mikael@lilotux.net>
Tue, 01 May 2007 13:50:02 +0200
changeset 7 766d1c7289ce
parent 6 ad3de9374276
child 8 7be151146c5e
Ignore implict help requests in MUC rooms
neutron.py
--- a/neutron.py	Tue May 01 13:41:15 2007 +0200
+++ b/neutron.py	Tue May 01 13:50:02 2007 +0200
@@ -386,6 +386,8 @@
 				parameters = parameters[(parameters.find(' ') + 1):]
 			else:
 				parameters = ''
+                elif msgtype == 'groupchat' and command == 'help':
+                        command = '' # Let's ignore implict help requests in MUC rooms
 	if not msg.timestamp:
 		if msgtype == 'groupchat':
 				call_message_handlers('public', [fromjid, fromjid.getStripped(), fromjid.getResource()], body)