Source/ThunderBeast/QuakeToon/server/sv_main.c
void SVC_Info (void)
{
	char	string[64];
	int		i, count;
	int		version;

	if (maxclients->value == 1)
		return;		// ignore in single player

	version = atoi (Cmd_Argv(1));

	if (version != PROTOCOL_VERSION)
		Com_sprintf (string, sizeof(string), "%s: wrong version\n", hostname->string, sizeof(string));
	else
	{
		count = 0;
		for (i=0 ; i<maxclients->value ; i++)
			if (svs.clients[i].state >= cs_connected)
				count++;

		Com_sprintf (string, sizeof(string), "%16s %8s %2i/%2i\n", hostname->string, sv.name, count, (int)maxclients->value);
	}

	Netchan_OutOfBandPrint (NS_SERVER, net_from, "info\n%s", string);
}
/*
================
SVC_Info

Responds with short info for broadcast scans
The second parameter should be the current protocol version number.
================
*/
SVC_Info
Responds with short info for broadcast scans
The second parameter should be the current protocol version number.
SVC_Info Responds with short info for broadcast scans The second parameter should be the current protocol version number .
void SVC_Info (void)
{
	char	string[64];
	int		i, count;
	int		version;
	if (maxclients->value == 1)
		return;		
	version = atoi (Cmd_Argv(1));
	if (version != PROTOCOL_VERSION)
		Com_sprintf (string, sizeof(string), "%s: wrong version\n", hostname->string, sizeof(string));
	else
	{
		count = 0;
		for (i=0 ; i<maxclients->value ; i++)
			if (svs.clients[i].state >= cs_connected)
				count++;
		Com_sprintf (string, sizeof(string), "%16s %8s %2i/%2i\n", hostname->string, sv.name, count, (int)maxclients->value);
	}
	Netchan_OutOfBandPrint (NS_SERVER, net_from, "info\n%s", string);
}
void SVC_Info ( void ) { char string [ 64 ] ; int i , count ; int version ; if ( maxclients -> value == 1 ) return ; version = atoi ( Cmd_Argv ( 1 ) ) ; if ( version != PROTOCOL_VERSION ) Com_sprintf ( string , sizeof ( string ) , " \n " , hostname -> string , sizeof ( string ) ) ; else { count = 0 ; for ( i = 0 ; i < maxclients -> value ; i ++ ) if ( svs . clients [ i ] . state >= cs_connected ) count ++ ; Com_sprintf ( string , sizeof ( string ) , " \n " , hostname -> string , sv . name , count , ( int ) maxclients -> value ) ; } Netchan_OutOfBandPrint ( NS_SERVER , net_from , " \n " , string ) ; }
SVC_Info
Responds with short info for broadcast scans
The second parameter should be the current protocol version number.
SVC_Info Responds with short info for broadcast scans The second parameter should be the current protocol version number .
// ignore in single player