Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-07-31 12:08:54 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-07-31 12:08:54 +0400
commitf586c8dd5520d11eabf5d892aa5f942fb5ce548c (patch)
tree5e9c11ee2b8e82229ecedca674aa91762e9fe15b /src
parenta5584151c2af88955092d200e8bcf9d75804b5ac (diff)
block adding ourself in our roster. Fixes #4073
Diffstat (limited to 'src')
-rw-r--r--src/dialogs.py5
1 files changed, 5 insertions, 0 deletions
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: