| 75 | } |
| 76 | |
| 77 | void 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 | |
| 93 | void Chat_DisableLogging(void) { |
| 94 | Chat_Logging = false; |
no test coverage detected