Slash commands: Update compares (#1270)

use case insensitive compare
use character name for kill instead of account name

Use correct Id for muting when a player is found
This commit is contained in:
David Markowitz
2023-11-15 17:29:00 -08:00
committed by GitHub
parent 8cd5bf7b8d
commit 59303a232e
3 changed files with 7 additions and 8 deletions

View File

@@ -125,7 +125,7 @@ User* UserManager::GetUser(const SystemAddress& sysAddr) {
User* UserManager::GetUser(const std::string& username) {
for (auto p : m_Users) {
if (p.second) {
if (p.second->GetUsername() == username) return p.second;
if (GeneralUtils::CaseInsensitiveStringCompare(p.second->GetUsername(), username)) return p.second;
}
}