allow fake jid: server.tld/echo

This commit is contained in:
Nikos Kouremenos 2005-10-04 14:38:32 +00:00
parent 80b8881d67
commit 6794f9a138

View file

@ -710,7 +710,8 @@ class NewMessageDialog:
).get_response()
return
if jid.find('@') == -1: # if no @ was given
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
@ -1045,7 +1046,8 @@ class SingleMessageWindow:
message)
return
if to_whom_jid.find('@') == -1: # if no @ was given
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