aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-08-10 16:58:39 +0100
committerNay <dnpd.dd@gmail.com>2012-08-10 16:58:39 +0100
commit274a54c1529e9cf22778866cf5ddb0e9b919fdb3 (patch)
tree9cde374ffa1a472d831f65d4f13a146833086f72 /src/server/scripts/Commands
parentcf2d235c72f7459acccb344eacbbbc87da9af11b (diff)
Core: Cleanup whitespace, fix build and enable 1 opcode
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_disable.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/scripts/Commands/cs_disable.cpp b/src/server/scripts/Commands/cs_disable.cpp
index a2a80edd43b..0bb376b08dd 100644
--- a/src/server/scripts/Commands/cs_disable.cpp
+++ b/src/server/scripts/Commands/cs_disable.cpp
@@ -62,7 +62,7 @@ public:
{ "add", SEC_ADMINISTRATOR, true, NULL, "", addDisableCommandTable },
{ "remove", SEC_ADMINISTRATOR, true, NULL, "", removeDisableCommandTable },
{ NULL, 0, false, NULL, "", NULL }
- };
+ };
static ChatCommand commandTable[] =
{
{ "disable", SEC_ADMINISTRATOR, false, NULL, "", disableCommandTable },
@@ -88,7 +88,7 @@ public:
uint32 entry = uint32(atoi(entryStr));
std::string disableTypeStr = "";
-
+
switch (disableType)
{
case DISABLE_TYPE_SPELL:
@@ -171,12 +171,12 @@ public:
default:
break;
}
-
+
PreparedStatement* stmt = NULL;
stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_DISABLES);
stmt->setUInt32(0, entry);
- stmt->setUInt8(1, disableType);
- PreparedQueryResult result = WorldDatabase.Query(stmt);
+ stmt->setUInt8(1, disableType);
+ PreparedQueryResult result = WorldDatabase.Query(stmt);
if (result)
{
handler->PSendSysMessage("This %s (Id: %u) is already disabled.", disableTypeStr.c_str(), entry);
@@ -290,8 +290,8 @@ public:
PreparedStatement* stmt = NULL;
stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_DISABLES);
stmt->setUInt32(0, entry);
- stmt->setUInt8(1, disableType);
- PreparedQueryResult result = WorldDatabase.Query(stmt);
+ stmt->setUInt8(1, disableType);
+ PreparedQueryResult result = WorldDatabase.Query(stmt);
if (!result)
{
handler->PSendSysMessage("This %s (Id: %u) is not disabled.", disableTypeStr.c_str(), entry);