MCPcopy Create free account
hub / github.com/JACoders/OpenJK / SV_GameSendServerCommand

Function SV_GameSendServerCommand

code/server/sv_game.cpp:96–112  ·  view source on GitHub ↗

=============== SV_GameSendServerCommand Sends a command string to a client =============== */

Source from the content-addressed store, hash-verified

94===============
95*/
96void SV_GameSendServerCommand( int clientNum, const char *fmt, ... ) {
97 char msg[8192];
98 va_list argptr;
99
100 va_start (argptr,fmt);
101 Q_vsnprintf (msg, sizeof(msg), fmt, argptr);
102 va_end (argptr);
103
104 if ( clientNum == -1 ) {
105 SV_SendServerCommand( NULL, "%s", msg );
106 } else {
107 if ( clientNum < 0 || clientNum >= 1 ) {
108 return;
109 }
110 SV_SendServerCommand( svs.clients + clientNum, "%s", msg );
111 }
112}
113
114
115/*

Callers

nothing calls this directly

Calls 2

Q_vsnprintfFunction · 0.85
SV_SendServerCommandFunction · 0.70

Tested by

no test coverage detected