@@ -2563,27 +2563,26 @@ stock CheckLoadAdmins()
25632563
25642564stock InsertServerInfo ()
25652565{
2566- if (DB == INVALID_HANDLE )
2567- {
2568- return ;
2569- }
2570-
2571- char query [100 ], pieces [4 ];
2572- int longip = GetConVarInt (CvarHostIp );
2573-
2574- pieces [0 ] = (longip >> 24 ) & 0x000000FF ;
2575- pieces [1 ] = (longip >> 16 ) & 0x000000FF ;
2576- pieces [2 ] = (longip >> 8 ) & 0x000000FF ;
2577- pieces [3 ] = longip & 0x000000FF ;
2578-
2579- FormatEx (ServerIp , sizeof (ServerIp ), " %d .%d .%d .%d " , pieces [0 ], pieces [1 ], pieces [2 ], pieces [3 ]);
2580- GetConVarString (CvarPort , ServerPort , sizeof (ServerPort ));
2581-
2582- if (AutoAdd != false )
2583- {
2584- FormatEx (query , sizeof (query ), " SELECT sid FROM %s _servers WHERE ip = '%s ' AND port = '%s '" , DatabasePrefix , ServerIp , ServerPort );
2585- SQL_TQuery (DB , ServerInfoCallback , query );
2586- }
2566+ if (DB == INVALID_HANDLE ) {
2567+ return ;
2568+ }
2569+
2570+ char query [100 ];
2571+ int pieces [4 ];
2572+ int longip = GetConVarInt (CvarHostIp );
2573+
2574+ pieces [0 ] = (longip >> 24 ) & 0x000000FF ;
2575+ pieces [1 ] = (longip >> 16 ) & 0x000000FF ;
2576+ pieces [2 ] = (longip >> 8 ) & 0x000000FF ;
2577+ pieces [3 ] = longip & 0x000000FF ;
2578+
2579+ FormatEx (ServerIp , sizeof (ServerIp ), " %d .%d .%d .%d " , pieces [0 ], pieces [1 ], pieces [2 ], pieces [3 ]);
2580+ GetConVarString (CvarPort , ServerPort , sizeof (ServerPort ));
2581+
2582+ if (AutoAdd != false ) {
2583+ FormatEx (query , sizeof (query ), " SELECT sid FROM %s _servers WHERE ip = '%s ' AND port = '%s '" , DatabasePrefix , ServerIp , ServerPort );
2584+ SQL_TQuery (DB , ServerInfoCallback , query );
2585+ }
25872586}
25882587
25892588stock void PrepareBan (int client , int target , int time , char [] reason , int size )
0 commit comments