MCPcopy Index your code
hub / github.com/assaultcube/AC / extping_serverinfo

Function extping_serverinfo

source/src/server.cpp:4730–4745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4728}
4729
4730void extping_serverinfo(ucharbuf &pi, ucharbuf &po)
4731{
4732 getint(pi); getint(pi); // dummy read language code
4733 if(strlen(serverinfoinfo.getmsg()))
4734 {
4735 sendstring("en", po);
4736 int pos = 0;
4737 string buf;
4738 while(po.remaining() > MAXINFOLINELEN + 10)
4739 {
4740 sendstring(serverinfoinfo.getmsgline(buf, &pos), po);
4741 if(!*buf) break;
4742 }
4743 }
4744 else sendstring("", po);
4745}
4746
4747void extping_maprot(ucharbuf &po)
4748{

Callers 1

servermsFunction · 0.85

Calls 5

getintFunction · 0.85
sendstringFunction · 0.85
getmsgMethod · 0.80
getmsglineMethod · 0.80
remainingMethod · 0.45

Tested by

no test coverage detected