Some tyhigns.

This commit is contained in:
2026-03-11 00:27:19 -04:00
parent 3b1b4f63e2
commit cbd2270628
14 changed files with 571 additions and 163 deletions

View File

@@ -13,3 +13,10 @@ int msg_verify(const char* content) {
if (strlen(content) > MSG_MAX_LENGTH) return 0;
return 1;
}
int room_verify(const char* room) {
if (!room) return 0;
if (strlen(room) == 0) return 0;
if (strlen(room) > ROOM_MAX_LENGTH) return 0;
return 1;
}