Commit 08349495 authored by mathieui's avatar mathieui

Fix /kick with the optional message

parent 131404de
......@@ -658,7 +658,12 @@ class MucTab(ChatTab):
if not len(args):
self.core.command_help('kick')
else:
self.command_role(arg+ ' none')
if len(args) > 1:
msg = ' '+args[1]
self.core.information("-%s-" % msg)
else:
msg = ''
self.command_role(args[0]+ ' none'+msg)
def command_role(self, arg):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment