From b9e6a1f5ebc9a4b8b7c8150dfacbbfef616e8e41 Mon Sep 17 00:00:00 2001 From: KimLS Date: Mon, 11 Aug 2014 14:10:24 -0700 Subject: [PATCH] Fixed param problem with zone/world, also please don't put excessive periods in function names... thank.you.please.for.the.love.of.god --- web_interface/method_handler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web_interface/method_handler.cpp b/web_interface/method_handler.cpp index e24339f66..9de785374 100644 --- a/web_interface/method_handler.cpp +++ b/web_interface/method_handler.cpp @@ -14,8 +14,8 @@ void register_authorized_methods() authorized_methods["World.GetZoneDetails"] = std::make_pair(10, handle_method_world); authorized_methods["Zone.Subscribe"] = std::make_pair(10, handle_method_zone); authorized_methods["Zone.Unsubscribe"] = std::make_pair(10, handle_method_zone); - authorized_methods["Zone.Get.Initial.Entity.Positions"] = std::make_pair(10, handle_method_zone); - authorized_methods["Zone.Move.Entity"] = std::make_pair(10, handle_method_zone); + authorized_methods["Zone.GetInitialEntityPositions"] = std::make_pair(10, handle_method_zone); + authorized_methods["Zone.MoveEntity"] = std::make_pair(10, handle_method_zone); } void register_unauthorized_methods() @@ -42,14 +42,14 @@ void handle_method_token_auth(per_session_data_eqemu *session, rapidjson::Docume } void handle_method_world(per_session_data_eqemu *session, rapidjson::Document &document, std::string &method) { - CheckParams(2, "[zone_id, instance_id]"); + CheckParams(0, "[]"); VerifyID(); CalculateSize(); WriteWebProtocolPacket(); } void handle_method_zone(per_session_data_eqemu *session, rapidjson::Document &document, std::string &method) { - CheckParams(0, "[]"); + CheckParams(2, "[zone_id, instance_id]"); VerifyID(); CalculateSize(); WriteWebProtocolPacket();