- if(( Req->argc != 2 ) && ( Req->argc != 3 )) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
-
- /* Ist this server configured on out side? */
- for( i = 0; i < MAX_SERVERS; i++ ) if( strcasecmp( Req->argv[0], Conf_Server[i].name ) == 0 ) break;
- if( i >= MAX_SERVERS )
- {
- Log( LOG_ERR, "Connection %d: Server \"%s\" not configured here!", Client_Conn( Client ), Req->argv[0] );
- Conn_Close( Client_Conn( Client ), NULL, "Server not configured here", true);
+ if (Req->argc != 2 && Req->argc != 3)
+ return IRC_WriteErrClient(Client, ERR_NEEDMOREPARAMS_MSG,
+ Client_ID(Client),
+ Req->command);
+
+ /* Get configuration index of new remote server ... */
+ for (i = 0; i < MAX_SERVERS; i++)
+ if (strcasecmp(Req->argv[0], Conf_Server[i].name) == 0)
+ break;
+
+ /* Make sure the remote server is configured here */
+ if (i >= MAX_SERVERS) {
+ Log(LOG_ERR,
+ "Connection %d: Server \"%s\" not configured here!",
+ Client_Conn(Client), Req->argv[0]);
+ Conn_Close(Client_Conn(Client), NULL,
+ "Server not configured here", true);