Do not split on command_part as it is unnecessary
This commit is contained in:
parent
d0e0be2dd6
commit
1c18c6e2b5
1 changed files with 1 additions and 6 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue