handles a remote command (client side)
| 313 | |
| 314 | // handles a remote command (client side) |
| 315 | void Remote_ClientProcess(const char *command) { |
| 316 | if (basethis->GetLocalRole() == LR_SERVER) |
| 317 | return; |
| 318 | if (!IAmAnAdmin) { |
| 319 | // only let "login" go through |
| 320 | if (!strnicmp(command, "login", strlen("login"))) { |
| 321 | mprintf(0, "Sending login attempt for remote administration\n"); |
| 322 | } else { |
| 323 | return; |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | const char *ptr = command; |
| 328 | while (*ptr == ' ') |
| 329 | ptr++; |
| 330 | if (*ptr) { |
| 331 | Remote_SendStringToServer(ptr); |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | // handles a remote command (server side) |
| 336 | void Remote_ServerProcess(int precnum, char *command) { |
no test coverage detected