summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
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 == '':