From f586c8dd5520d11eabf5d892aa5f942fb5ce548c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 31 Jul 2008 08:08:54 +0000 Subject: [PATCH] block adding ourself in our roster. Fixes #4073 --- src/dialogs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dialogs.py b/src/dialogs.py index ef605291a..b0bd43f7f 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -869,6 +869,11 @@ _('Please fill in the data of the contact you want to add in account %s') %accou ErrorDialog(pritext, _('The user ID must not contain a resource.')) return + if jid == gajim.get_jid_from_account(self.account): + pritext = _('Invalid User ID') + ErrorDialog(pritext, _('You cannot add yourself to your roster.')) + return + nickname = self.nickname_entry.get_text().decode('utf-8') or '' # get value of account combobox, if account was not specified if not self.account: