MCPcopy Create free account
hub / github.com/assaultcube/AC / scallvotesuc

Function scallvotesuc

source/src/server.cpp:2630–2639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2628}
2629
2630void 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
2641void scallvoteerr(voteinfo *v, int error)
2642{

Callers 1

scallvoteFunction · 0.85

Calls 3

sendfFunction · 0.85
mlogFunction · 0.85
isvalidMethod · 0.45

Tested by

no test coverage detected