From 6794f9a138843a1251ffebba329752986f14c1bb Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 4 Oct 2005 14:38:32 +0000 Subject: [PATCH] allow fake jid: server.tld/echo --- src/dialogs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index 79d45cf2c..24d0fa6ef 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -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