aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_jabber.c
diff options
context:
space:
mode:
authormogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-03 15:53:07 +0000
committermogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-03 15:53:07 +0000
commit4a1aaf52ae4189e660ad57ba69253f54603a2beb (patch)
tree27a80e26cf8f6ea1728ab5b2b8cc7573fd9f7cdc /res/res_jabber.c
parent1bd1494da59a95dce73628aafc4ba892036b82b2 (diff)
bug #8076 check option_debug before printing to debug channel.
patch provided in bugnote, with minor changes. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44253 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_jabber.c')
-rw-r--r--res/res_jabber.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c
index 9a4b52db6..3340423c5 100644
--- a/res/res_jabber.c
+++ b/res/res_jabber.c
@@ -1239,8 +1239,10 @@ static void aji_handle_presence(struct aji_client *client, ikspak *pak)
found->cap = aji_find_version(node, ver, pak);
if(gtalk_yuck(pak->x)) /* gtalk should do discover */
found->cap->jingle = 1;
- if(found->cap->jingle && option_debug > 4)
- ast_log(LOG_DEBUG,"Special case for google till they support discover.\n");
+ if(found->cap->jingle && option_debug > 4) {
+ if (option_debug)
+ ast_log(LOG_DEBUG,"Special case for google till they support discover.\n");
+ }
else {
iks *iq, *query;
iq = iks_new("iq");