summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-18 00:14:08 +0200
committermathieui <mathieui@mathieui.net>2012-04-18 00:14:08 +0200
commit1c18c6e2b505f0a9ffe8867aa63edae90a355c2c (patch)
treef68374f14a44212727addbb3918c60b5c64d85b0 /src
parentd0e0be2dd6d3161fde60b21e822042a21ebe7265 (diff)
downloadpoezio-1c18c6e2b505f0a9ffe8867aa63edae90a355c2c.tar.gz
poezio-1c18c6e2b505f0a9ffe8867aa63edae90a355c2c.tar.bz2
poezio-1c18c6e2b505f0a9ffe8867aa63edae90a355c2c.tar.xz
poezio-1c18c6e2b505f0a9ffe8867aa63edae90a355c2c.zip
Do not split on command_part as it is unnecessary
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/tabs.py b/src/tabs.py
index b1363ddd..908a0ce5 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -800,11 +800,7 @@ class MucTab(ChatTab):
"""
/part [msg]
"""
- args = arg.split()
- if len(args):
- arg = ' '.join(args)
- else:
- arg = None
+ arg = arg.strip()
if self.joined:
self.disconnect()
muc.leave_groupchat(self.core.xmpp, self.name, self.own_nick, arg)
@@ -824,7 +820,6 @@ class MucTab(ChatTab):
self.command_part(arg)
self.core.close_tab()
-
def command_query(self, arg):
"""
/query <nick> [message]