summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-10-15 15:28:59 +0200
committermathieui <mathieui@mathieui.net>2012-10-15 15:28:59 +0200
commit59df2d3e94cd794d5561471957b17f2492c94611 (patch)
treeb6743a44beb9acf1f6ade7b25b6ea0e5f00304a8 /src/core.py
parent5006b649d685298400adfc4ae5aa553f889c2a2a (diff)
downloadpoezio-59df2d3e94cd794d5561471957b17f2492c94611.tar.gz
poezio-59df2d3e94cd794d5561471957b17f2492c94611.tar.bz2
poezio-59df2d3e94cd794d5561471957b17f2492c94611.tar.xz
poezio-59df2d3e94cd794d5561471957b17f2492c94611.zip
Fixes #2368 (/join /nick not working)
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py4
1 files changed, 3 insertions, 1 deletions
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 == '':