MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Chat_SetLogName

Function Chat_SetLogName

src/Chat.c:77–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void Chat_SetLogName(const cc_string* name) {
78 char c;
79 int i;
80 if (logName.length) return;
81
82 for (i = 0; i < name->length; i++) {
83 c = name->buffer[i];
84
85 if (AllowedLogNameChar(c)) {
86 String_Append(&logName, c);
87 } else if (c == '&') {
88 i++; /* skip over following color code */
89 }
90 }
91}
92
93void Chat_DisableLogging(void) {
94 Chat_Logging = false;

Callers 2

Classic_HandshakeFunction · 0.85

Calls 2

AllowedLogNameCharFunction · 0.85
String_AppendFunction · 0.85

Tested by

no test coverage detected