Core/Commands: Added output to .baninfo character <name> even when character has never been banned. Closes #2699

This commit is contained in:
Lopin
2011-08-22 11:22:26 +02:00
parent cb9985c054
commit 6e79510bc5

View File

@@ -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