Check for clan before clan chat

This commit is contained in:
Vortrex
2023-02-23 01:15:49 -06:00
parent c225c4d130
commit a0d03a0aab

View File

@@ -216,6 +216,16 @@ function clanChatCommand(command, params, client) {
return false;
}
if (getPlayerClan(client) == -1) {
messagePlayerError(client, getLocaleString(client, "InvalidClan"));
return false;
}
if (getClanData(getPlayerClan) == false) {
messagePlayerError(client, getLocaleString(client, "InvalidClan"));
return false;
}
clanChat(client, params);
}