diff options
| author | ulim <a.sporto+bee@gmail.com> | 2007-12-03 15:28:45 +0100 | 
|---|---|---|
| committer | ulim <a.sporto+bee@gmail.com> | 2007-12-03 15:28:45 +0100 | 
| commit | 2ff20765990c756533957e8da9c7c29dd3102e79 (patch) | |
| tree | 8d19ceb1490866feee355ba9a098d7e4be6eea53 /protocols/jabber/jabber_util.c | |
| parent | 2c2df7dd91930345a9b22a8bb61327d1dcc7e3d5 (diff) | |
Intermediate commit. Sending seems to work. TODOs:
* move from out_of_data to is_writable, eliminate buffers
* implement "transfers reject [id]"
* documentation in commands.xml
* implement throughput and cummulative throughput boundaries
* feature discovery before sending
* implement sending over a proxy
  (proxy discovery, socks5 client handshake for sending, activate message)
* integrate toxik-mek-ft
Diffstat (limited to 'protocols/jabber/jabber_util.c')
| -rw-r--r-- | protocols/jabber/jabber_util.c | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/protocols/jabber/jabber_util.c b/protocols/jabber/jabber_util.c index 0c5b813e..6bb65878 100644 --- a/protocols/jabber/jabber_util.c +++ b/protocols/jabber/jabber_util.c @@ -264,7 +264,14 @@ char *jabber_normalize( const char *orig )  	len = strlen( orig );  	new = g_new( char, len + 1 );  	for( i = 0; i < len; i ++ ) +	{ +		/* don't normalize the resource */ +		if( orig[i] == '/' ) +			break;  		new[i] = tolower( orig[i] ); +	} +	for( ; i < len; i ++ ) +		new[i] = orig[i];  	new[i] = 0;  	return new; | 
