use helper function
This commit is contained in:
parent
8a12655ec7
commit
be61788f24
1 changed files with 1 additions and 2 deletions
|
@ -858,8 +858,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
nick_jid = nick
|
nick_jid = nick
|
||||||
if jid:
|
if jid:
|
||||||
# delete ressource
|
# delete ressource
|
||||||
jid_splitted = jid.split('/')
|
simple_jid = gajim.get_jid_without_resource(jid)
|
||||||
simple_jid = jid_splitted[0]
|
|
||||||
nick_jid += ' (%s)' % simple_jid
|
nick_jid += ' (%s)' % simple_jid
|
||||||
if show == 'offline' and print_status in ('all', 'in_and_out'):
|
if show == 'offline' and print_status in ('all', 'in_and_out'):
|
||||||
st = _('%s has left') % nick_jid
|
st = _('%s has left') % nick_jid
|
||||||
|
|
Loading…
Add table
Reference in a new issue