From 8351596763d8a0ba200d08c86575feaf539d4f7b Mon Sep 17 00:00:00 2001 From: Gent S Date: Thu, 26 Nov 2020 08:30:19 -0500 Subject: [PATCH] Fix /help using accoutnId instead of accountLevel --- src/ChatManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChatManager.cpp b/src/ChatManager.cpp index 1da29d3..d7997a3 100644 --- a/src/ChatManager.cpp +++ b/src/ChatManager.cpp @@ -49,7 +49,7 @@ void helpCommand(std::string full, std::vector& args, CNSocket* soc Player *plr = PlayerManager::getPlayer(sock); for (auto& cmd : ChatManager::commands) { - if (cmd.second.requiredAccLevel >= plr->accountId) + if (cmd.second.requiredAccLevel >= plr->accountLevel) ChatManager::sendServerMessage(sock, "/" + cmd.first + (cmd.second.help.length() > 0 ? " - " + cmd.second.help : "")); } }