Fix not being able to use commands when both 'guests must agree to rules' and 'admin verification rank is guest'.

This commit is contained in:
UnknownShadow200 2017-09-06 11:41:06 +10:00
parent 6ebf2d7ad4
commit 2c35b13d31

View File

@ -638,7 +638,7 @@ namespace MCGalaxy {
bool CheckCommand(string cmd) {
if (cmd.Length == 0) { SendMessage("No command entered."); return false; }
if (ServerConfig.AgreeToRulesOnEntry && !agreed && !(cmd == "agree" || cmd == "rules" || cmd == "disagree")) {
if (ServerConfig.AgreeToRulesOnEntry && !agreed && !(cmd == "agree" || cmd == "rules" || cmd == "disagree" || cmd == "pass" || cmd == "setpass")) {
SendMessage(mustAgreeMsg); return false;
}
if (jailed) {