diff options
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/msn/ns.c | 3 | ||||
| -rw-r--r-- | protocols/msn/soap.c | 12 | 
2 files changed, 10 insertions, 5 deletions
| diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c index 604e2f4e..e144a8d2 100644 --- a/protocols/msn/ns.c +++ b/protocols/msn/ns.c @@ -479,7 +479,8 @@ static int msn_ns_command( struct msn_handler_data *handler, char **cmd, int num  		}  		else  		{ -			imcb_error( ic, "Session terminated by remote server (reason unknown)" ); +			imcb_error( ic, "Session terminated by remote server (%s)", +			            cmd[1] ? cmd[1] : "reason unknown)" );  		}  		imc_logout( ic, allow_reconnect ); diff --git a/protocols/msn/soap.c b/protocols/msn/soap.c index cbc384be..467429fb 100644 --- a/protocols/msn/soap.c +++ b/protocols/msn/soap.c @@ -214,12 +214,16 @@ static void msn_soap_debug_print( const char *headers, const char *payload )  	if( !getenv( "BITLBEE_DEBUG" ) )  		return; -	if( ( s = strstr( headers, "\r\n\r\n" ) ) ) -		st = write( 1, headers, s - headers + 4 ); -	else -		st = write( 1, headers, strlen( headers ) ); +	if( headers ) +	{ +		if( ( s = strstr( headers, "\r\n\r\n" ) ) ) +			st = write( 1, headers, s - headers + 4 ); +		else +			st = write( 1, headers, strlen( headers ) ); +	}  #ifdef DEBUG +	if( payload )  	{  		struct xt_node *xt = xt_from_string( payload );  		if( xt ) | 
