From 85084f390a79c620e56a0d3c4facdec03e62ff7f Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Sat, 18 Aug 2012 01:59:51 +0000 Subject: [PATCH] Fix typo in JabberSend that looked for '2' instead of '@' in recipient argument The summary says about all there is to say. (closes issue ASTERISK-20239) Reported by: Gregory Porras git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@371518 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_xmpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_xmpp.c b/res/res_xmpp.c index 93916c5835..575f1426dd 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -1748,7 +1748,7 @@ static int xmpp_send_exec(struct ast_channel *chan, const char *data) AST_STANDARD_APP_ARGS(args, s); - if ((args.argc < 3) || ast_strlen_zero(args.message) || !strchr(args.recipient, '2')) { + if ((args.argc < 3) || ast_strlen_zero(args.message) || !strchr(args.recipient, '@')) { ast_log(LOG_WARNING, "%s requires arguments (account,jid,message)\n", app_ajisend); return -1; }