Skip to content
Snippets Groups Projects
Commit f586c8dd authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

block adding ourself in our roster. Fixes #4073

parent a5584151
No related branches found
No related tags found
No related merge requests found
......@@ -869,6 +869,11 @@ def on_add_button_clicked(self, widget):
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment