Do not split on command_nick as it is unnecessary
This commit is contained in:
parent
dd751ea14d
commit
d0e0be2dd6
1 changed files with 4 additions and 5 deletions
|
@ -788,12 +788,11 @@ class MucTab(ChatTab):
|
||||||
"""
|
"""
|
||||||
/nick <nickname>
|
/nick <nickname>
|
||||||
"""
|
"""
|
||||||
args = common.shell_split(arg)
|
if not arg:
|
||||||
if len(args) != 1:
|
return self.command_help('nick')
|
||||||
return
|
nick = arg
|
||||||
nick = args[0]
|
|
||||||
if not self.joined:
|
if not self.joined:
|
||||||
return
|
return self.core.information('/nick only works in joined rooms', 'Info')
|
||||||
current_status = self.core.get_status()
|
current_status = self.core.get_status()
|
||||||
muc.change_nick(self.core.xmpp, self.name, nick, current_status.message, current_status.show)
|
muc.change_nick(self.core.xmpp, self.name, nick, current_status.message, current_status.show)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue