diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-08-27 15:02:21 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-08-27 15:02:21 +0200 |
commit | 6b16dbc84c748292535d1309cadf696f7828a8a4 (patch) | |
tree | 9319a050d0bfcba4afc3ec2026084af0b8d4c1bc | |
parent | f19dd8310e0b14dd679aba0dc054a4314ca53c5a (diff) |
Fix indentation
-rw-r--r-- | src/modules/m_spanningtree/commands.h | 12 | ||||
-rw-r--r-- | src/modules/m_spanningtree/servercommand.h | 10 |
2 files changed, 11 insertions, 11 deletions
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<std::string>& parameters, User *user); - RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters); + CommandRConnect(Module* Creator); + CmdResult Handle(const std::vector<std::string>& parameters, User* user); + RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters); }; class CommandRSQuit : public Command { public: - CommandRSQuit(Module* Creator); - CmdResult Handle (const std::vector<std::string>& parameters, User *user); - RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters); + CommandRSQuit(Module* Creator); + CmdResult Handle(const std::vector<std::string>& parameters, User* user); + RouteDescriptor GetRouting(User* user, const std::vector<std::string>& 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<std::string>& parameters) - { - RemoteUser* remoteuser = IS_REMOTE(user); + { + RemoteUser* remoteuser = IS_REMOTE(user); if (!remoteuser) return CMD_INVALID; return static_cast<T*>(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<std::string>& parameters) - { + { if (!IS_SERVER(user)) return CMD_INVALID; TreeServer* server = Utils->FindServer(user->server); return static_cast<T*>(this)->HandleServer(server, parameters); - } + } }; class ServerCommandManager |