aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/Channels
diff options
context:
space:
mode:
authorAzazel <azazel.kon@gmail.com>2011-03-11 17:18:17 +0600
committerAzazel <azazel.kon@gmail.com>2011-03-11 17:18:17 +0600
commit3973d1b45444c0c8fcd7aa1e033be4329dce05ae (patch)
tree48a785ae8bbdaf7b49eaf6a832d0a0ea2f577014 /src/server/game/Chat/Channels
parent20b44e82d5a0ba86e1b8819e5d7cad4681ba36f5 (diff)
CharDB Schema/Cleanup: cleanup channels table:
* rename columns (remove m_ prefix and convert to lowerCamel case); * rename prepared statements to conform to standards (there is no CLEAN statement).
Diffstat (limited to 'src/server/game/Chat/Channels')
-rwxr-xr-xsrc/server/game/Chat/Channels/Channel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Chat/Channels/Channel.cpp b/src/server/game/Chat/Channels/Channel.cpp
index 24fb18349ef..afe487b2c1b 100755
--- a/src/server/game/Chat/Channels/Channel.cpp
+++ b/src/server/game/Chat/Channels/Channel.cpp
@@ -133,8 +133,8 @@ void Channel::CleanOldChannelsInDB()
{
if (sWorld->getIntConfig(CONFIG_PRESERVE_CUSTOM_CHANNEL_DURATION) > 0)
{
- PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_CLEAN_CHANNEL);
- stmt->setUInt32(0, sWorld->getIntConfig(CONFIG_PRESERVE_CUSTOM_CHANNEL_DURATION)*DAY);
+ PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_OLD_CHANNELS);
+ stmt->setUInt32(0, sWorld->getIntConfig(CONFIG_PRESERVE_CUSTOM_CHANNEL_DURATION) * DAY);
CharacterDatabase.Execute(stmt);
sLog->outDebug(LOG_FILTER_CHATSYS,"Cleaned out unused custom chat channels.");