diff --git a/src/common/contacts.py b/src/common/contacts.py index 368ba5032..303fe3854 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -475,10 +475,10 @@ class Contacts: return 1 if show2 > show1: return -1 - server1 = gajim.get_server_from_jid(jid1) - server2 = gajim.get_server_from_jid(jid2) - myserver1 = gajim.config.get_per('accounts', account1, 'hostname') - myserver2 = gajim.config.get_per('accounts', account2, 'hostname') + server1 = common.gajim.get_server_from_jid(jid1) + server2 = common.gajim.get_server_from_jid(jid2) + myserver1 = common.gajim.config.get_per('accounts', account1, 'hostname') + myserver2 = common.gajim.config.get_per('accounts', account2, 'hostname') if server1 == myserver1: if server2 != myserver2: return 1