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] /part [msg]
""" """
args = arg.split() arg = arg.strip()
if len(args):
arg = ' '.join(args)
else:
arg = None
if self.joined: if self.joined:
self.disconnect() self.disconnect()
muc.leave_groupchat(self.core.xmpp, self.name, self.own_nick, arg) muc.leave_groupchat(self.core.xmpp, self.name, self.own_nick, arg)
@ -824,7 +820,6 @@ class MucTab(ChatTab):
self.command_part(arg) self.command_part(arg)
self.core.close_tab() self.core.close_tab()
def command_query(self, arg): def command_query(self, arg):
""" """
/query <nick> [message] /query <nick> [message]