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

Function pm

source/src/client.cpp:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229COMMANDN(me, toserverme, "c");
230
231void pm(char *text)
232{
233 char *msg;
234 int cn = (int) strtol(text, &msg, 10);
235 if(msg != text && getclient(cn))
236 {
237 filtertext(msg, msg, FTXT__CHAT | FTXT_CROPWHITE_LEAD);
238 if(*msg) addmsg(SV_TEXTPRIVATE, "ris", cn, msg);
239 }
240 else conoutf("\f3pm: invalid client number specified");
241}
242COMMAND(pm, "c");
243
244void echo(char *text)

Callers

nothing calls this directly

Calls 4

getclientFunction · 0.85
filtertextFunction · 0.85
addmsgFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected