Core/ChatCommands: Fix a potential crash if a custom chat command does not have a specified help string

This commit is contained in:
Treeston
2020-10-08 16:45:20 +02:00
parent 5f001ddb2b
commit 3ec98bf241
3 changed files with 14 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
--
DELETE FROM `trinity_string` WHERE `entry`=196;
INSERT INTO `trinity_string` (`entry`,`content_default`) VALUES
(196, 'There is no detailed usage information associated with \'%.*s\'.
This should never occur for stock TrinityCore commands - if it does, report this as a bug.
If this is a custom command, use `trinity_string` to specify it. Look at cs_achievement.cpp for example usage.');