mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user