Skip to content

Commit

Permalink
[2942] Apply CMaNGOS core update z2757
Browse files Browse the repository at this point in the history
* Groundwork for channel commands

Command table ".chat" was renamed to ".channel".
This will better reflect purpose of subcommands to be hosted in there.

Collateral changes:
* New command ".channel list" for listing custom channels
* Rename ".chat static" command to ".channel static"
* Move ".channel static" to level 1 (Moderator) access
  • Loading branch information
Warlockbugs authored and cala committed Apr 14, 2020
1 parent 65c7f96 commit a8b1ed6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Updates/2942_z2757_01_mangos_channel_commands.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
ALTER TABLE db_version CHANGE COLUMN required_z2756_01_mangos_new_ticket_system_update required_z2757_01_mangos_channel_commands bit;

LOCK TABLES `command` WRITE;
/*!40000 ALTER TABLE `command` DISABLE KEYS */;
DELETE FROM `command` WHERE `name` IN ('chat static', 'channel list', 'channel static');
INSERT INTO `command` VALUES
('channel list',1,'Syntax: .channel list [#max] [static]\r\n\r\nShow list of custom channels with amounts of players joined.'),
('channel static',1,'Syntax: .channel static $channelname on|off\r\n\r\nEnable or disable static mode for a custom channel with name $channelname. Static custom channel upon conversion acquires a set of properties identical to global channes.');
/*!40000 ALTER TABLE `command` ENABLE KEYS */;
UNLOCK TABLES;

LOCK TABLES `mangos_string` WRITE;
/*!40000 ALTER TABLE `mangos_string` DISABLE KEYS */;
DELETE FROM `mangos_string` WHERE `entry` IN (176, 177, 178, 179, 180, 181, 182, 373, 374, 375);
INSERT INTO `mangos_string` VALUES
(176,'Conversion failed: channel \'%s\' has password set',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(177,'Conversion failed: channel \'%s\' is not eligible',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(178,'Conversion succeeded: channel \'%s\' static status is now %s',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(179,'(Static)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(180,'(Password)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(181,'There are no matching custom channels at the moment',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(182,'Listing up to %u custom channels matching criterea:',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(373,'UNUSED',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(374,'UNUSED',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(375,'UNUSED',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `mangos_string` ENABLE KEYS */;
UNLOCK TABLES;

0 comments on commit a8b1ed6

Please sign in to comment.