From 0b27c37fe95c6aced613d51a3624f8930a96ad3f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 4 Jun 2009 22:23:07 +0200 Subject: RequestHandler-Interface ?berarbeitet --- src/Server/RequestHandlers/UserInfoRequestHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Server/RequestHandlers/UserInfoRequestHandler.cpp') diff --git a/src/Server/RequestHandlers/UserInfoRequestHandler.cpp b/src/Server/RequestHandlers/UserInfoRequestHandler.cpp index 1773658..e9e0716 100644 --- a/src/Server/RequestHandlers/UserInfoRequestHandler.cpp +++ b/src/Server/RequestHandlers/UserInfoRequestHandler.cpp @@ -26,8 +26,8 @@ namespace Mad { namespace Server { namespace RequestHandlers { -void UserInfoRequestHandler::handlePacket(const Common::XmlPacket &packet) { - if(packet.getType() != "GetUserInfo") { +void UserInfoRequestHandler::handlePacket(boost::shared_ptr packet) { + if(packet->getType() != "GetUserInfo") { Common::Logger::log(Common::Logger::ERROR, "Received an unexpected packet."); Common::XmlPacket ret; @@ -45,7 +45,7 @@ void UserInfoRequestHandler::handlePacket(const Common::XmlPacket &packet) { Common::XmlPacket ret; try { - boost::shared_ptr info = UserManager::get()->getUserInfo(packet["uid"]); + boost::shared_ptr info = UserManager::get()->getUserInfo((*packet)["uid"]); ret.setType("OK"); -- cgit v1.2.3