aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclick <none@none>2010-12-02 17:30:48 +0100
committerclick <none@none>2010-12-02 17:30:48 +0100
commit94fd1487d0f0c60a28a132385affbd16933f0bc2 (patch)
tree94c8e9d2deaef871be880f7397dbf3d1622b4ed9
parent0efefa685416c8e6c3cd82e3c03da9660157a16a (diff)
Core/Chat: Fix issues introduced in 177d6f86ca
+ Wrong update-query for the channels-table (SQL from 10548 sorted properly) + Add a small correction on Channel.cpp say handling (thanks to Lazzalf/Leak) --HG-- branch : trunk
-rw-r--r--sql/updates/10548_characters_channel.sql3
-rwxr-xr-xsrc/server/game/Chat/Channels/Channel.cpp6
2 files changed, 2 insertions, 7 deletions
diff --git a/sql/updates/10548_characters_channel.sql b/sql/updates/10548_characters_channel.sql
index 905d3583e4a..126a51ca5bb 100644
--- a/sql/updates/10548_characters_channel.sql
+++ b/sql/updates/10548_characters_channel.sql
@@ -5,4 +5,5 @@ CHANGE `m_announce` `m_announce` TINYINT(3) UNSIGNED DEFAULT '1' NOT NULL,
CHANGE `m_public` `m_ownership` TINYINT(3) UNSIGNED DEFAULT '1' NOT NULL,
CHANGE `m_password` `m_password` VARCHAR(32) NULL,
ADD COLUMN `last_used` INT(10) UNSIGNED NOT NULL AFTER `BannedList`;
-SET last_used = UNIX_TIMESTAMP();
+-- Set already existing/current channels to use current timestamp (saves them from being unneccesarily cleaned up)
+UPDATE `channels` SET last_used = UNIX_TIMESTAMP();
diff --git a/src/server/game/Chat/Channels/Channel.cpp b/src/server/game/Chat/Channels/Channel.cpp
index 9a5e42ef6c0..30f9f95adfc 100755
--- a/src/server/game/Chat/Channels/Channel.cpp
+++ b/src/server/game/Chat/Channels/Channel.cpp
@@ -641,12 +641,6 @@ void Channel::Say(uint64 p, const char *what, uint32 lang)
MakeMuted(&data);
SendToOne(&data, p);
}
- else if (!players[p].IsModerator() && sec < SEC_GAMEMASTER)
- {
- WorldPacket data;
- MakeNotModerator(&data);
- SendToOne(&data, p);
- }
else
{
uint32 messageLength = strlen(what) + 1;