| 129 | } |
| 130 | |
| 131 | void CVoting::AddvoteOption(const char *pDescription, const char *pCommand) |
| 132 | { |
| 133 | char aBuf[128] = "add_vote \""; |
| 134 | char *pDst = aBuf + str_length(aBuf); |
| 135 | str_escape(&pDst, pDescription, aBuf + sizeof(aBuf)); |
| 136 | str_append(aBuf, "\" \""); |
| 137 | pDst = aBuf + str_length(aBuf); |
| 138 | str_escape(&pDst, pCommand, aBuf + sizeof(aBuf)); |
| 139 | str_append(aBuf, "\""); |
| 140 | Client()->Rcon(aBuf); |
| 141 | } |
| 142 | |
| 143 | void CVoting::Vote(int v) |
| 144 | { |
no test coverage detected