diff --git a/src/dialogs.py b/src/dialogs.py index ef605291a7bf60903bb302bd2b8a34550e241b89..b0bd43f7f7ab3e734735047b614134c298342c78 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -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: