+ Log( LOG_ERR, "%s, line %d (section \"Operator\"): Unknown variable \"%s\"!", Conf_File, Line, Var );
+} /* Handle_OPERATOR */
+
+
+GLOBAL VOID Handle_SERVER( INT Line, CHAR *Var, CHAR *Arg )
+{
+ INT port;
+
+ assert( Line > 0 );
+ assert( Var != NULL );
+ assert( Arg != NULL );
+
+ if( strcasecmp( Var, "Host" ) == 0 )
+ {
+ /* Hostname des Servers */
+ strncpy( Conf_Server[Conf_Server_Count - 1].host, Arg, HOST_LEN );
+ Conf_Server[Conf_Server_Count - 1].host[HOST_LEN - 1] = '\0';
+ return;
+ }
+ if( strcasecmp( Var, "Name" ) == 0 )
+ {
+ /* Name des Servers ("Nick") */
+ strncpy( Conf_Server[Conf_Server_Count - 1].name, Arg, CLIENT_PASS_LEN );
+ Conf_Server[Conf_Server_Count - 1].name[CLIENT_PASS_LEN - 1] = '\0';
+ return;
+ }
+ if( strcasecmp( Var, "Password" ) == 0 )
+ {
+ /* Passwort des Servers */
+ strncpy( Conf_Server[Conf_Server_Count - 1].pwd, Arg, CLIENT_PASS_LEN );
+ Conf_Server[Conf_Server_Count - 1].pwd[CLIENT_PASS_LEN - 1] = '\0';
+ return;
+ }
+ if( strcasecmp( Var, "Port" ) == 0 )
+ {
+ /* Port, zu dem Verbunden werden soll */
+ port = atol( Arg );
+ if( port > 0 && port < 0xFFFF ) Conf_Server[Conf_Server_Count - 1].port = port;
+ else Log( LOG_ERR, "%s, line %d (section \"Server\"): Illegal port number %ld!", Conf_File, Line, port );
+ return;
+ }
+
+ Log( LOG_ERR, "%s, line %d (section \"Server\"): Unknown variable \"%s\"!", Conf_File, Line, Var );
+} /* Handle_SERVER */