we were checking for @ unless we had /echo but it is also valid to contact jabber.org so it is time we do not check at all if jid has @

This commit is contained in:
Nikos Kouremenos 2005-11-03 12:45:26 +00:00
parent 9bf4819404
commit 1462b4a27f
1 changed files with 0 additions and 12 deletions

View File

@ -727,12 +727,6 @@ class NewMessageDialog:
_('Please make sure you are connected with "%s".' % self.account)
).get_response()
return
if jid.find('@') == -1 and not jid.endswith('/echo'):
# if no @ was given and jid is not server.tld/echo
ErrorDialog(_('Invalid contact ID'),
_('Contact ID must be of the form "username@servername".')).get_response()
return
gajim.interface.roster.new_chat_from_jid(self.account, jid)
@ -1072,12 +1066,6 @@ class SingleMessageWindow:
message)
return
if to_whom_jid.find('@') == -1 and not to_whom_jid.endswith('/echo'):
# if no @ was given and jid is not server.tld/echo
ErrorDialog(_('Invalid contact ID'),
_('Contact ID must be of the form "username@servername".')).get_response()
return
# FIXME: allow GPG message some day
gajim.connections[self.account].send_message(to_whom_jid, message,
keyID = None, type = 'normal', subject=subject)