aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat
diff options
context:
space:
mode:
authorChaplain <aionthefirst@gmail.com>2011-09-01 22:38:32 +0300
committerChaplain <aionthefirst@gmail.com>2011-09-01 22:38:32 +0300
commitbea649d0451271eda60aadff6040c3e6a9899a3f (patch)
tree49383b7f9b8caac38552a4c6d0c65c34c22cc4e2 /src/server/game/Chat
parent0046083509304113a951519191a6a4d251cf2e5c (diff)
Core: cleanup.
*remove some garbage *little bit moore const func *fix process of args in vmap3_extractor
Diffstat (limited to 'src/server/game/Chat')
-rwxr-xr-xsrc/server/game/Chat/Chat.h2
-rwxr-xr-xsrc/server/game/Chat/Commands/Level3.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/server/game/Chat/Chat.h b/src/server/game/Chat/Chat.h
index d7a9c0b66f5..b3d9ae1e262 100755
--- a/src/server/game/Chat/Chat.h
+++ b/src/server/game/Chat/Chat.h
@@ -119,7 +119,7 @@ class ChatHandler
GameObject* GetNearbyGameObject();
GameObject* GetObjectGlobalyWithGuidOrNearWithDbGuid(uint32 lowguid, uint32 entry);
- bool HasSentErrorMessage() { return sentErrorMessage;}
+ bool HasSentErrorMessage() const { return sentErrorMessage;}
void SetSentErrorMessage(bool val){ sentErrorMessage = val;};
static bool LoadCommandTable() { return load_command_table;}
static void SetLoadCommandTable(bool val){ load_command_table = val;};
diff --git a/src/server/game/Chat/Commands/Level3.cpp b/src/server/game/Chat/Commands/Level3.cpp
index c7dec515d3c..5f2b39fcb4f 100755
--- a/src/server/game/Chat/Commands/Level3.cpp
+++ b/src/server/game/Chat/Commands/Level3.cpp
@@ -4208,8 +4208,6 @@ bool ChatHandler::HandleServerSetMotdCommand(const char *args)
/// Set whether we accept new clients
bool ChatHandler::HandleServerSetClosedCommand(const char *args)
{
- std::string arg = args;
-
if (strncmp(args, "on", 3) == 0)
{
SendSysMessage(LANG_WORLD_CLOSED);