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);
|
stmt->setUInt32(0, target_guid);
|
||||||
PreparedQueryResult result = CharacterDatabase.Query(stmt);
|
PreparedQueryResult result = CharacterDatabase.Query(stmt);
|
||||||
if (!result)
|
if (!result)
|
||||||
|
{
|
||||||
|
PSendSysMessage("Character %s has never been banned!", name.c_str());
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
PSendSysMessage(LANG_BANINFO_BANHISTORY, name.c_str());
|
PSendSysMessage(LANG_BANINFO_BANHISTORY, name.c_str());
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user