From 6b16dbc84c748292535d1309cadf696f7828a8a4 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Tue, 27 Aug 2013 15:02:21 +0200 Subject: Fix indentation --- src/modules/m_spanningtree/commands.h | 12 ++++++------ src/modules/m_spanningtree/servercommand.h | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h index 96cb42563..d0465a447 100644 --- a/src/modules/m_spanningtree/commands.h +++ b/src/modules/m_spanningtree/commands.h @@ -26,17 +26,17 @@ class CommandRConnect : public Command { public: - CommandRConnect(Module* Creator); - CmdResult Handle (const std::vector& parameters, User *user); - RouteDescriptor GetRouting(User* user, const std::vector& parameters); + CommandRConnect(Module* Creator); + CmdResult Handle(const std::vector& parameters, User* user); + RouteDescriptor GetRouting(User* user, const std::vector& parameters); }; class CommandRSQuit : public Command { public: - CommandRSQuit(Module* Creator); - CmdResult Handle (const std::vector& parameters, User *user); - RouteDescriptor GetRouting(User* user, const std::vector& parameters); + CommandRSQuit(Module* Creator); + CmdResult Handle(const std::vector& parameters, User* user); + RouteDescriptor GetRouting(User* user, const std::vector& parameters); }; class CommandMap : public Command diff --git a/src/modules/m_spanningtree/servercommand.h b/src/modules/m_spanningtree/servercommand.h index 2fa964232..2bd77fc84 100644 --- a/src/modules/m_spanningtree/servercommand.h +++ b/src/modules/m_spanningtree/servercommand.h @@ -45,12 +45,12 @@ class UserOnlyServerCommand : public ServerCommand : ServerCommand(Creator, Name, MinPara, MaxPara) { } CmdResult Handle(User* user, std::vector& parameters) - { - RemoteUser* remoteuser = IS_REMOTE(user); + { + RemoteUser* remoteuser = IS_REMOTE(user); if (!remoteuser) return CMD_INVALID; return static_cast(this)->HandleRemote(remoteuser, parameters); - } + } }; /** Base class for server-to-server command handlers which are only valid if their source is a server. @@ -64,12 +64,12 @@ class ServerOnlyServerCommand : public ServerCommand : ServerCommand(Creator, Name, MinPara, MaxPara) { } CmdResult Handle(User* user, std::vector& parameters) - { + { if (!IS_SERVER(user)) return CMD_INVALID; TreeServer* server = Utils->FindServer(user->server); return static_cast(this)->HandleServer(server, parameters); - } + } }; class ServerCommandManager -- cgit v1.2.3