diff options
author | Matt O'Gorman <mogorman@digium.com> | 2006-06-01 18:48:22 +0000 |
---|---|---|
committer | Matt O'Gorman <mogorman@digium.com> | 2006-06-01 18:48:22 +0000 |
commit | fa339925dc123ccb2602eb35cfe2fe92e57c2668 (patch) | |
tree | 699659d71902e3a0de6c1bc20335e8d98aa0dd30 /res/res_jabber.c | |
parent | 4508c9fcc036d1888f6b650e9adbe4f78c7a5377 (diff) |
more minor fixes thanks Julian on pointing out
potential problems
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_jabber.c')
-rw-r--r-- | res/res_jabber.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c index 71a60552d..dde2ecdef 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -342,9 +342,7 @@ static int aji_status_exec(struct ast_channel *chan, void *data) if (!strcasecmp(iterator->user, screenname)) { found = 1; r = iterator->resources; - if (!r) { /* client hasnt signed on */ - break; - } else { + if (r) { /* client has signed on */ if (resource) { while (r) { if (!strcasecmp(r->resource, resource)) { @@ -353,7 +351,9 @@ static int aji_status_exec(struct ast_channel *chan, void *data) } r = r->next; } + if(stat != 7) break; ast_log(LOG_WARNING, "Resource not found %s\n", resource); + break; } else { stat = r->status; break; |