From 1c18c6e2b505f0a9ffe8867aa63edae90a355c2c Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 18 Apr 2012 00:14:08 +0200 Subject: [PATCH] Do not split on command_part as it is unnecessary --- src/tabs.py | 7 +------ 1 file changed, 1 insertion(+), 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 [message]