From 59df2d3e94cd794d5561471957b17f2492c94611 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 15 Oct 2012 15:28:59 +0200 Subject: Fixes #2368 (/join /nick not working) --- src/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core.py b/src/core.py index bb26b210..bd83c51f 100644 --- a/src/core.py +++ b/src/core.py @@ -1613,7 +1613,9 @@ class Core(object): nick = tab.own_nick else: info = safeJID(args[0]) - if info.resource == '': + if info == '' and len(args[0]) > 1 and args[0][0] == '/': + nick = args[0][1:] + elif info.resource == '': default = os.environ.get('USER') if os.environ.get('USER') else 'poezio' nick = config.get('default_nick', '') if nick == '': -- cgit v1.2.3