Source/ThunderBeast/QuakeToon/server/sv_main.c
void SVC_RemoteCommand (void)
{
	int		i;
	char	remaining[1024];

	i = Rcon_Validate ();

	if (i == 0)
		Com_Printf ("Bad rcon from %s:\n%s\n", NET_AdrToString (net_from), net_message.data+4);
	else
		Com_Printf ("Rcon from %s:\n%s\n", NET_AdrToString (net_from), net_message.data+4);

	Com_BeginRedirect (RD_PACKET, sv_outputbuf, SV_OUTPUTBUF_LENGTH, SV_FlushRedirect);

	if (!Rcon_Validate ())
	{
		Com_Printf ("Bad rcon_password.\n");
	}
	else
	{
		remaining[0] = 0;

		for (i=2 ; i<Cmd_Argc() ; i++)
		{
			strcat (remaining, Cmd_Argv(i) );
			strcat (remaining, " ");
		}

		Cmd_ExecuteString (remaining);
	}

	Com_EndRedirect ();
}
/*
===============
SVC_RemoteCommand

A client issued an rcon command.
Shift down the remaining args
Redirect all printfs
===============
*/
SVC_RemoteCommand
A client issued an rcon command.
Shift down the remaining args
Redirect all printfs
SVC_RemoteCommand A client issued an rcon command . Shift down the remaining args Redirect all printfs
void SVC_RemoteCommand (void)
{
	int		i;
	char	remaining[1024];
	i = Rcon_Validate ();
	if (i == 0)
		Com_Printf ("Bad rcon from %s:\n%s\n", NET_AdrToString (net_from), net_message.data+4);
	else
		Com_Printf ("Rcon from %s:\n%s\n", NET_AdrToString (net_from), net_message.data+4);
	Com_BeginRedirect (RD_PACKET, sv_outputbuf, SV_OUTPUTBUF_LENGTH, SV_FlushRedirect);
	if (!Rcon_Validate ())
	{
		Com_Printf ("Bad rcon_password.\n");
	}
	else
	{
		remaining[0] = 0;
		for (i=2 ; i<Cmd_Argc() ; i++)
		{
			strcat (remaining, Cmd_Argv(i) );
			strcat (remaining, " ");
		}
		Cmd_ExecuteString (remaining);
	}
	Com_EndRedirect ();
}
void SVC_RemoteCommand ( void ) { int i ; char remaining [ 1024 ] ; i = Rcon_Validate ( ) ; if ( i == 0 ) Com_Printf ( " \n \n " , NET_AdrToString ( net_from ) , net_message . data + 4 ) ; else Com_Printf ( " \n \n " , NET_AdrToString ( net_from ) , net_message . data + 4 ) ; Com_BeginRedirect ( RD_PACKET , sv_outputbuf , SV_OUTPUTBUF_LENGTH , SV_FlushRedirect ) ; if ( ! Rcon_Validate ( ) ) { Com_Printf ( " \n " ) ; } else { remaining [ 0 ] = 0 ; for ( i = 2 ; i < Cmd_Argc ( ) ; i ++ ) { strcat ( remaining , Cmd_Argv ( i ) ) ; strcat ( remaining , " " ) ; } Cmd_ExecuteString ( remaining ) ; } Com_EndRedirect ( ) ; }
SVC_RemoteCommand
A client issued an rcon command.
SVC_RemoteCommand A client issued an rcon command .