MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DMFCInputCommand_Remote

Function DMFCInputCommand_Remote

netgames/dmfc/dmfcinputcommand.cpp:1079–1091  ·  view source on GitHub ↗

handles a remote admin command Usage: "$remote <...>"

Source from the content-addressed store, hash-verified

1077// handles a remote admin command
1078// Usage: "$remote <command> <option parms> <...>"
1079void DMFCInputCommand_Remote(const char *input_string) {
1080 if (basethis->GetLocalRole() == LR_SERVER)
1081 return;
1082 char s[20];
1083
1084 // parse "$remote"
1085 if (!StringParseWord(input_string, s, 20, &input_string)) {
1086 basethis->DisplayInputCommandHelp(DTXT_IC_REMOTE);
1087 return;
1088 }
1089
1090 Remote_ClientProcess(input_string + 1 /*for space*/);
1091}
1092
1093// handles a request to make all clients wait/or stop waiting
1094// Usage: "$wait <on/off>"

Callers

nothing calls this directly

Calls 4

StringParseWordFunction · 0.85
Remote_ClientProcessFunction · 0.85
GetLocalRoleMethod · 0.80

Tested by

no test coverage detected