-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Core/WorldSession): rework mute system (#16)
- Removed very old mute system (in `account` db table) - The system has been moved to a separate manager (Implement mute manager) - Added config option `Mute.AddAfterLogin.Enable` for mute now or after login if the target offline
- Loading branch information
1 parent
4c111a6
commit 097df4e
Showing
21 changed files
with
415 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ALTER TABLE `account_muted` | ||
CHANGE COLUMN `guid` `accountid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier' FIRST, | ||
ADD COLUMN `id` int(10) NOT NULL AUTO_INCREMENT FIRST, | ||
ADD COLUMN `active` tinyint(1) NOT NULL AFTER `mutereason`, | ||
MODIFY COLUMN `mutetime` int(10) NOT NULL DEFAULT 0 AFTER `mutedate`, | ||
DROP PRIMARY KEY, | ||
ADD PRIMARY KEY (`id`) USING BTREE; | ||
|
||
ALTER TABLE `account` | ||
DROP COLUMN `mutetime`, | ||
DROP COLUMN `mutereason`, | ||
DROP COLUMN `muteby`; |
4 changes: 4 additions & 0 deletions
4
data/sql/custom/db_world/2020_06_26_00_rework_mute_system.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
UPDATE `acore_string` SET `locale_ruRU` = '%s отключил чат %s на %u минут, действующий при следующем входе игрока в игру. Причина: %s.' WHERE `entry` = 283; | ||
UPDATE `acore_string` SET `locale_ruRU` = 'У вас отключен чат на %u минут. Отключил %s. Причина %s.' WHERE `entry` = 300; | ||
UPDATE `acore_string` SET `locale_ruRU` = 'Вы отключили чат %s на %u минут. Причина: %s.', `content_default` = 'You has disabled %s\'s chat for %u minutes. Reason: %s.', `locale_deDE` = NULL WHERE `entry` = 301; | ||
UPDATE `acore_string` SET `locale_ruRU` = 'Server: %s замутил %s на %u минут. Причина: %s' WHERE `entry` = 11003; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.