- Log( LOG_DEBUG, " -> connection %d: '%s', %d %s,%s prefix.", Idx, Req->command, Req->argc, Req->argc == 1 ? "parameter" : "parameters", Req->prefix ? "" : " no" );
+ Log( LOG_DEBUG, " connection %d: '%s', %d %s,%s prefix.", Idx, Req->command, Req->argc, Req->argc == 1 ? "parameter" : "parameters", Req->prefix ? "" : " no" );
+#endif
+
+ client = Client_GetFromConn( Idx );
+ assert( client != NULL );
+
+ if( strcasecmp( Req->command, "PASS" ) == 0 ) return IRC_PASS( client, Req );
+ else if( strcasecmp( Req->command, "NICK" ) == 0 ) return IRC_NICK( client, Req );
+ else if( strcasecmp( Req->command, "USER" ) == 0 ) return IRC_USER( client, Req );
+ else if( strcasecmp( Req->command, "MOTD" ) == 0 ) return IRC_MOTD( client, Req );
+
+ /* Unbekannter Befehl */
+ Conn_WriteStr( Idx, ERR_UNKNOWNCOMMAND_MSG, Req->command );
+
+#ifndef DEBUG
+ Log( LOG_DEBUG, "Connection %d: Unknown command '%s', %d %s,%s prefix.", Idx, Req->command, Req->argc, Req->argc == 1 ? "parameter" : "parameters", Req->prefix ? "" : " no" );