| 2628 | } |
| 2629 | |
| 2630 | void scallvotesuc(voteinfo *v) |
| 2631 | { |
| 2632 | if(!v->isvalid()) return; |
| 2633 | DELETEP(curvote); |
| 2634 | curvote = v; |
| 2635 | clients[v->owner]->lastvotecall = servmillis; |
| 2636 | clients[v->owner]->nvotes--; // successful votes do not count as abuse |
| 2637 | sendf(v->owner, 1, "ri", SV_CALLVOTESUC); |
| 2638 | mlog(ACLOG_INFO, "[%s] client %s called a vote: %s", clients[v->owner]->hostname, clients[v->owner]->name, v->action && *v->action->desc ? v->action->desc : "[unknown]"); |
| 2639 | } |
| 2640 | |
| 2641 | void scallvoteerr(voteinfo *v, int error) |
| 2642 | { |