Skip to content
Browse files

Core: Fix warnings

  • Loading branch information...
1 parent 4e1a4b3 commit 52340e74e288377cdcd05821bc6b1507d10c6ee6 @Vincent-Michael Vincent-Michael committed Mar 18, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/server/scripts/Commands/cs_message.cpp
View
2 src/server/scripts/Commands/cs_message.cpp
@@ -210,6 +210,7 @@ class message_commandscript : public CommandScript
{
std::string name = strtok(NULL, " ");
if (normalizePlayerName(name))
+ {
if (Player* player = sObjectAccessor->FindPlayerByName(name))
{
handler->GetSession()->GetPlayer()->RemoveFromWhisperWhiteList(player->GetGUID());
@@ -222,6 +223,7 @@ class message_commandscript : public CommandScript
handler->SetSentErrorMessage(true);
return false;
}
+ }
}
handler->SendSysMessage(LANG_USE_BOL);
handler->SetSentErrorMessage(true);

0 comments on commit 52340e7

Please sign in to comment.
Something went wrong with that request. Please try again.