mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Misc: CRLF to LF, whitespace cleanup and tabs to spaces
This commit is contained in:
@@ -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);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user