Do not split on command_part as it is unnecessary

This commit is contained in:
mathieui 2012-04-18 00:14:08 +02:00
parent d0e0be2dd6
commit 1c18c6e2b5

View file

@ -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]