Some tyhigns.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user