From 22b983cdcf6a3c464f02fd17b9aeb121d160e308 Mon Sep 17 00:00:00 2001 From: amibu Date: Thu, 14 Sep 2017 17:19:44 +0200 Subject: [PATCH] Style fixes --- .../Server_Zone/DebugCommand/DebugCommandHandler.cpp | 8 ++++---- .../Server_Zone/DebugCommand/DebugCommandHandler.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/servers/Server_Zone/DebugCommand/DebugCommandHandler.cpp b/src/servers/Server_Zone/DebugCommand/DebugCommandHandler.cpp index 46bae275..b04d4389 100644 --- a/src/servers/Server_Zone/DebugCommand/DebugCommandHandler.cpp +++ b/src/servers/Server_Zone/DebugCommand/DebugCommandHandler.cpp @@ -50,7 +50,7 @@ Core::DebugCommandHandler::DebugCommandHandler() registerCommand( "injectc", &DebugCommandHandler::injectChatPacket, "Loads and injects a premade Packet.", Common::UserLevel::all ); registerCommand( "script_reload", &DebugCommandHandler::scriptReload, "Loads and injects a premade Packet.", Common::UserLevel::all ); registerCommand( "nudge", &DebugCommandHandler::nudge, "Nudges you forward/up/down", Common::UserLevel::all ); - registerCommand("info", &DebugCommandHandler::serverInfo, "Send server info", Common::UserLevel::all); + registerCommand( "info", &DebugCommandHandler::serverInfo, "Send server info", Common::UserLevel::all ); } @@ -88,9 +88,9 @@ void Core::DebugCommandHandler::execCommand( char * data, Core::Entity::PlayerPt // no parameters, just get the command commandString = tmpCommand; - if (pPlayer->getGmRank() <= 0 && commandString != "info") + if ( pPlayer->getGmRank() <= 0 && commandString != "info" ) { - pPlayer->sendUrgent("You are not allowed to use debug commands."); + pPlayer->sendUrgent( "You are not allowed to use debug commands." ); return; } @@ -536,7 +536,7 @@ void Core::DebugCommandHandler::nudge( char * data, Entity::PlayerPtr pPlayer, b } } -void Core::DebugCommandHandler::serverInfo(char * data, Core::Entity::PlayerPtr pPlayer, boost::shared_ptr< Core::DebugCommand > command) +void Core::DebugCommandHandler::serverInfo( char * data, Core::Entity::PlayerPtr pPlayer, boost::shared_ptr< Core::DebugCommand > command ) { pPlayer->sendDebug( "SapphireServer " + Version::VERSION + " - " + Version::GIT_HASH ); pPlayer->sendDebug( "Sessions: " + std::to_string( g_serverZone.getSessionCount() ) ); diff --git a/src/servers/Server_Zone/DebugCommand/DebugCommandHandler.h b/src/servers/Server_Zone/DebugCommand/DebugCommandHandler.h index fa481889..fc12606e 100644 --- a/src/servers/Server_Zone/DebugCommand/DebugCommandHandler.h +++ b/src/servers/Server_Zone/DebugCommand/DebugCommandHandler.h @@ -37,7 +37,7 @@ public: void injectPacket( char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr command ); void injectChatPacket( char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr command ); void nudge( char* data, Entity::PlayerPtr pPlayer, boost::shared_ptr command ); - void serverInfo(char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr command); + void serverInfo( char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr command ); };