summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-18 00:13:44 +0200
committermathieui <mathieui@mathieui.net>2012-04-18 00:13:44 +0200
commitd0e0be2dd6d3161fde60b21e822042a21ebe7265 (patch)
treea4a3e4ab9a6d5a87d01dbcfce4723ed273c904b8 /src
parentdd751ea14d00708edcb0dd7ad1e72a9a7b8595eb (diff)
downloadpoezio-d0e0be2dd6d3161fde60b21e822042a21ebe7265.tar.gz
poezio-d0e0be2dd6d3161fde60b21e822042a21ebe7265.tar.bz2
poezio-d0e0be2dd6d3161fde60b21e822042a21ebe7265.tar.xz
poezio-d0e0be2dd6d3161fde60b21e822042a21ebe7265.zip
Do not split on command_nick as it is unnecessary
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 258b1bc8..b1363ddd 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -788,12 +788,11 @@ class MucTab(ChatTab):
"""
/nick <nickname>
"""
- args = common.shell_split(arg)
- if len(args) != 1:
- return
- nick = args[0]
+ if not arg:
+ return self.command_help('nick')
+ nick = arg
if not self.joined:
- return
+ return self.core.information('/nick only works in joined rooms', 'Info')
current_status = self.core.get_status()
muc.change_nick(self.core.xmpp, self.name, nick, current_status.message, current_status.show)