mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-10 17:38:08 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user