diff options
| author | Wilmer van der Gaast <wilmer@google.com> | 2011-07-25 13:09:30 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@google.com> | 2011-07-25 13:09:30 +0100 | 
| commit | 59c9adb4e3e27ded95ec9ccee4f57cf79490bd12 (patch) | |
| tree | d78a95a23781bf91cf75bc5d712f1696d845050f /protocols | |
| parent | 57b4525653972dc23c8c5ca5ffaa7e44fad64ee9 (diff) | |
Kill obsolete Jabber server string (SSL, port#s, etc) parsing.
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/jabber/jabber.c | 55 | 
1 files changed, 0 insertions, 55 deletions
| diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c index 91d40a43..bd9bbe23 100644 --- a/protocols/jabber/jabber.c +++ b/protocols/jabber/jabber.c @@ -136,61 +136,6 @@ static void jabber_login( account_t *acc )  		*s = 0;  	} -	/* This code isn't really pretty. Backwards compatibility never is... */ -	s = acc->server; -	while( s ) -	{ -		static int had_port = 0; -		 -		if( strncmp( s, "ssl", 3 ) == 0 ) -		{ -			set_setstr( &acc->set, "ssl", "true" ); -			 -			/* Flush this part so that (if this was the first -			   part of the server string) acc->server gets -			   flushed. We don't want to have to do this another -			   time. :-) */ -			*s = 0; -			s ++; -			 -			/* Only set this if the user didn't specify a custom -			   port number already... */ -			if( !had_port ) -				set_setint( &acc->set, "port", 5223 ); -		} -		else if( isdigit( *s ) ) -		{ -			int i; -			 -			/* The first character is a digit. It could be an -			   IP address though. Only accept this as a port# -			   if there are only digits. */ -			for( i = 0; isdigit( s[i] ); i ++ ); -			 -			/* If the first non-digit character is a colon or -			   the end of the string, save the port number -			   where it should be. */ -			if( s[i] == ':' || s[i] == 0 ) -			{ -				sscanf( s, "%d", &i ); -				set_setint( &acc->set, "port", i ); -				 -				/* See above. */ -				*s = 0; -				s ++; -			} -			 -			had_port = 1; -		} -		 -		s = strchr( s, ':' ); -		if( s ) -		{ -			*s = 0; -			s ++; -		} -	} -	  	jd->node_cache = g_hash_table_new_full( g_str_hash, g_str_equal, NULL, jabber_cache_entry_free );  	jd->buddies = g_hash_table_new( g_str_hash, g_str_equal ); | 
