From 5d6ad7853a8316c69996091df657a090f9eb40cd Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sun, 5 Apr 2009 15:26:59 +0000
Subject: [PATCH] don't remove the possibility to add twice the same account.
 Fixes #4948

---
 src/config.py | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/config.py b/src/config.py
index bb206843ee..b439db4a7c 100644
--- a/src/config.py
+++ b/src/config.py
@@ -3112,18 +3112,6 @@ class AccountCreationWizardWindow:
 				dialogs.ErrorDialog(pritext, str(s))
 				return
 
-			already_in_jids = []
-			for account in gajim.connections:
-				j = gajim.config.get_per('accounts', account, 'name')
-				j += '@' + gajim.config.get_per('accounts', account, 'hostname')
-				already_in_jids.append(j)
-
-			if jid in already_in_jids:
-				pritext = _('Duplicate Jabber ID')
-				sectext = _('This account is already configured in Gajim.')
-				dialogs.ErrorDialog(pritext, sectext)
-				return
-
 			self.account = server
 			i = 1
 			while self.account in gajim.connections:
-- 
GitLab