summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-08 22:03:33 +0100
committermathieui <mathieui@mathieui.net>2011-11-08 22:03:33 +0100
commit08349495af2618de761e874d1daa149c390501bb (patch)
treea50b1e045aa90d63c76c88ef636fb8259986dcea
parent131404defaf0403f1d8e5f586cccd492331f31f2 (diff)
downloadpoezio-08349495af2618de761e874d1daa149c390501bb.tar.gz
poezio-08349495af2618de761e874d1daa149c390501bb.tar.bz2
poezio-08349495af2618de761e874d1daa149c390501bb.tar.xz
poezio-08349495af2618de761e874d1daa149c390501bb.zip
Fix /kick with the optional message
-rw-r--r--src/tabs.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 5d7f2286..2f708ca8 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -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):
"""