| 153 | } |
| 154 | |
| 155 | void RemoteCommandEvent::sendRemoteCommand(NetConnection *conn, S32 argc, const char **argv) |
| 156 | { |
| 157 | if(U8(argv[0][0]) != StringTagPrefixByte) |
| 158 | { |
| 159 | Con::errorf(ConsoleLogEntry::Script, "Remote Command Error - command must be a tag."); |
| 160 | return; |
| 161 | } |
| 162 | S32 i; |
| 163 | for(i = argc - 1; i >= 0; i--) |
| 164 | { |
| 165 | if(argv[i][0] != 0) |
| 166 | break; |
| 167 | argc = i; |
| 168 | } |
| 169 | for(i = 0; i < argc; i++) |
| 170 | conn->validateSendString(argv[i]); |
| 171 | RemoteCommandEvent *cevt = new RemoteCommandEvent(argc, argv, conn); |
| 172 | conn->postNetEvent(cevt); |
| 173 | } |
| 174 | |
| 175 | const char* RemoteCommandEvent::getTaggedString(const char* tag) |
| 176 | { |
nothing calls this directly
no test coverage detected