aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-10-01 21:22:57 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2010-10-01 21:22:57 -0700
commited86165b5681b7c3ed8a7b2ce8bda0dafd6fcd52 (patch)
treee7b5fe91c48f1057383fd5f752f68c74d09d30d6
parent52f5e90f166179d461e29af98d8b2852d9f12be0 (diff)
Silence some debugging stuff that was still going to stdout.
-rw-r--r--protocols/msn/soap.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/protocols/msn/soap.c b/protocols/msn/soap.c
index baa73718..63e5c638 100644
--- a/protocols/msn/soap.c
+++ b/protocols/msn/soap.c
@@ -633,7 +633,8 @@ static xt_status msn_soap_memlist_member( struct xt_node *node, gpointer data )
else if( strcmp( role, "Pending" ) == 0 )
bd->flags |= MSN_BUDDY_PL;
- printf( "%p %s %d\n", bu, handle, bd->flags );
+ if( getenv( "BITLBEE_DEBUG" ) )
+ printf( "%p %s %d\n", bu, handle, bd->flags );
return XT_HANDLED;
}
@@ -779,7 +780,8 @@ static xt_status msn_soap_addressbook_group( struct xt_node *node, gpointer data
md->groups = g_slist_prepend( md->groups, mg );
}
- printf( "%s %s\n", id, name );
+ if( getenv( "BITLBEE_DEBUG" ) )
+ printf( "%s %s\n", id, name );
return XT_HANDLED;
}
@@ -839,7 +841,8 @@ static xt_status msn_soap_addressbook_contact( struct xt_node *node, gpointer da
if( group_id && ( group = msn_group_by_id( ic, group_id ) ) )
imcb_add_buddy( ic, handle, group->name );
- printf( "%s %s %s %s\n", id, type, handle, display_name );
+ if( getenv( "BITLBEE_DEBUG" ) )
+ printf( "%s %s %s %s\n", id, type, handle, display_name );
return XT_HANDLED;
}