mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-31 22:27:34 +01:00
Core/Commands: Added output to .baninfo character <name> even when character has never been banned. Closes #2699
This commit is contained in:
@@ -3105,7 +3105,10 @@ bool ChatHandler::HandleBanInfoCharacterCommand(const char *args)
|
||||
stmt->setUInt32(0, target_guid);
|
||||
PreparedQueryResult result = CharacterDatabase.Query(stmt);
|
||||
if (!result)
|
||||
{
|
||||
PSendSysMessage("Character %s has never been banned!", name.c_str());
|
||||
return true;
|
||||
}
|
||||
|
||||
PSendSysMessage(LANG_BANINFO_BANHISTORY, name.c_str());
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user