diff options
author | KingPin <none@none> | 2008-10-20 12:59:45 -0500 |
---|---|---|
committer | KingPin <none@none> | 2008-10-20 12:59:45 -0500 |
commit | cdb7fd43eef1a4577da1af9012d302b0cd2de5bb (patch) | |
tree | 9ae1be3f5958265703d9701ac4b796c70c29ec99 /src/game/Chat.cpp | |
parent | 35f378aef9e2da3b24b2adb182f165d52da6a09b (diff) |
[svn] * Minor code fixes
* Move account related functions from ObjectMgr to AccountMgr and drop duplicate functions - source mangos
* recognize the dummy spells 38637, 38638 and 38639 as negative - source mangos
* added new command ".reload all_locales". Now all locales_* tables can be reloaded - source mangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r-- | src/game/Chat.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 2f5eb5d71fb..1ade86026fa 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -148,6 +148,7 @@ ChatCommand * ChatHandler::getCommandTable() { "all_scripts", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadAllScriptsCommand, "", NULL }, { "all_spell", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadAllSpellCommand, "", NULL }, { "all_item", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadAllItemCommand, "", NULL }, + { "all_locales", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadAllLocalesCommand, "", NULL }, { "config", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadConfigCommand, "", NULL }, @@ -196,6 +197,12 @@ ChatCommand * ChatHandler::getCommandTable() { "spell_scripts", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadSpellScriptsCommand, "", NULL }, { "spell_target_position", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadSpellTargetPositionCommand, "", NULL }, { "spell_threats", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadSpellThreatsCommand, "", NULL }, + { "locales_creature", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadLocalesCreatureCommand, "", NULL }, + { "locales_gameobject", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadLocalesGameobjectCommand, "", NULL }, + { "locales_item", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadLocalesItemCommand, "", NULL }, + { "locales_npc_text", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadLocalesNpcTextCommand, "", NULL }, + { "locales_page_text", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadLocalesPageTextCommand, "", NULL }, + { "locales_quest", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadLocalesQuestCommand, "", NULL }, { "", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadCommand, "", NULL }, { NULL, 0, NULL, "", NULL } }; @@ -715,6 +722,7 @@ bool ChatHandler::ShowHelpForSubCommands(ChatCommand *table, char const* cmd, ch continue; if( !hasStringAbbr(table[i].Name, subcmd) ) + continue; (list += "\n ") += table[i].Name; } |