From be61788f2455fd7c06823a1f14ee19961eeda6f8 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Mon, 25 Sep 2006 06:59:01 +0000
Subject: [PATCH] use helper function

---
 src/groupchat_control.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/groupchat_control.py b/src/groupchat_control.py
index aab8bf2db8..dd7d582613 100644
--- a/src/groupchat_control.py
+++ b/src/groupchat_control.py
@@ -858,8 +858,7 @@ class GroupchatControl(ChatControlBase):
 			nick_jid = nick
 			if jid:
 				# delete ressource
-				jid_splitted = jid.split('/')
-				simple_jid = jid_splitted[0]
+				simple_jid = gajim.get_jid_without_resource(jid)
 				nick_jid += ' (%s)' % simple_jid
 			if show == 'offline' and print_status in ('all', 'in_and_out'):
 				st = _('%s has left') % nick_jid
-- 
GitLab