fix(Core/Command): fix startup error

This commit is contained in:
José González
2019-01-27 08:23:19 -03:00
committed by Francesco Borzì
parent e1b506fafa
commit 987095e2c9
2 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -7,10 +7,10 @@
std::map<uint32,uint32> gmListening; std::map<uint32,uint32> gmListening;
std::map<uint32,uint32> gmListeningGroup; std::map<uint32,uint32> gmListeningGroup;
class chat_spy_script : public PlayerScript class chat_spy_playerscript : public PlayerScript
{ {
public: public:
chat_spy_script() : PlayerScript("chat_spy_script") { } chat_spy_playerscript() : PlayerScript("chat_spy_playerscript") { }
void OnChat(Player *sender, uint32 /*type*/, uint32 lang, std::string& msg, Player *receiver) void OnChat(Player *sender, uint32 /*type*/, uint32 lang, std::string& msg, Player *receiver)
{ {
@@ -271,9 +271,9 @@ public:
} }
}; };
void AddSC_spy_scripts() void AddSC_spy_commandscript()
{ {
new chat_spy_script(); new chat_spy_playerscript();
new chat_spy_commandscript(); new chat_spy_commandscript();
new chat_spy_logout_cleaner(); new chat_spy_logout_cleaner();
} }
+2 -1
View File
@@ -54,7 +54,7 @@ void AddSC_reload_commandscript();
void AddSC_reset_commandscript(); void AddSC_reset_commandscript();
void AddSC_server_commandscript(); void AddSC_server_commandscript();
void AddSC_spectator_commandscript(); void AddSC_spectator_commandscript();
void AddSC_spy_scripts(); void AddSC_spy_commandscript();
void AddSC_tele_commandscript(); void AddSC_tele_commandscript();
void AddSC_ticket_commandscript(); void AddSC_ticket_commandscript();
void AddSC_titles_commandscript(); void AddSC_titles_commandscript();
@@ -629,6 +629,7 @@ void AddCommandScripts()
AddSC_reload_commandscript(); AddSC_reload_commandscript();
AddSC_reset_commandscript(); AddSC_reset_commandscript();
AddSC_spectator_commandscript(); AddSC_spectator_commandscript();
AddSC_spy_commandscript();
AddSC_tele_commandscript(); AddSC_tele_commandscript();
AddSC_ticket_commandscript(); AddSC_ticket_commandscript();
AddSC_titles_commandscript(); AddSC_titles_commandscript();