rem: Server=Clients[thisServer]; if ( (Server.conntype == TYPE_SERVER) && match_irc_mask(Server.nick,server_name) ) 
add: var Server=Clients[thisServer]; if ((ignore_wildcards && (Server.conntype == TYPE_SERVER) && (Server.nick.toUpperCase() == server_name.toUpperCase())) || (!ignore_wildcards &&(Server.conntype == TYPE_SERVER) && match_irc_mask(Server.nick,server_name) ) ) 
context: function searchbyserver(server_name) {	if (!server_name)		return 0;	if (match_irc_mask(servername,server_name))		return -1; // the server passed to us is our own.	for(thisServer in Clients) {		Server=Clients[thisServer];		if ( (Server.conntype == TYPE_SERVER) &&		     match_irc_mask(Server.nick,server_name) )			return Server;	}	// if we've had no success so far, try nicknames and glean a server	// from there.	for(thisNick in Clients) {		Nick=Clients[thisNick];		if (!Nick.server && match_irc_mask(Nick.nick,server_name))			return searchbyserver(Nick.servername);	}	return 0; // looks like we failed after all that hard work :(}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/332205fe3fcf670958f78b39612aa0debbe05944/ircd.js/buggy/ircd.js