summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/main.cpp4
-rw-r--r--src/modules/m_spanningtree/main.h8
-rw-r--r--src/modules/m_spanningtree/rconnect.cpp4
-rw-r--r--src/modules/m_spanningtree/rconnect.h4
-rw-r--r--src/modules/m_spanningtree/rsquit.cpp6
-rw-r--r--src/modules/m_spanningtree/rsquit.h4
6 files changed, 15 insertions, 15 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 2d9bc3b83..5c9efb2dc 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -38,9 +38,9 @@ ModuleSpanningTree::ModuleSpanningTree(InspIRCd* Me)
{
ServerInstance->Modules->UseInterface("BufferedSocketHook");
Utils = new SpanningTreeUtilities(ServerInstance, this);
- command_rconnect = new cmd_rconnect(ServerInstance, this, Utils);
+ command_rconnect = new CommandRConnect(ServerInstance, this, Utils);
ServerInstance->AddCommand(command_rconnect);
- command_rsquit = new cmd_rsquit(ServerInstance, this, Utils);
+ command_rsquit = new CommandRSQuit(ServerInstance, this, Utils);
ServerInstance->AddCommand(command_rsquit);
RefreshTimer = new CacheRefreshTimer(ServerInstance, Utils);
ServerInstance->Timers->AddTimer(RefreshTimer);
diff --git a/src/modules/m_spanningtree/main.h b/src/modules/m_spanningtree/main.h
index 16b2c7574..b5301b9b8 100644
--- a/src/modules/m_spanningtree/main.h
+++ b/src/modules/m_spanningtree/main.h
@@ -30,8 +30,8 @@ const long ProtocolVersion = 1201;
/** Forward declarations
*/
-class cmd_rconnect;
-class cmd_rsquit;
+class CommandRConnect;
+class CommandRSQuit;
class SpanningTreeUtilities;
class CacheRefreshTimer;
class TreeServer;
@@ -45,8 +45,8 @@ class ModuleSpanningTree : public Module
int NumServers;
unsigned int max_local;
unsigned int max_global;
- cmd_rconnect* command_rconnect;
- cmd_rsquit* command_rsquit;
+ CommandRConnect* command_rconnect;
+ CommandRSQuit* command_rsquit;
SpanningTreeUtilities* Utils;
public:
diff --git a/src/modules/m_spanningtree/rconnect.cpp b/src/modules/m_spanningtree/rconnect.cpp
index 7fbbf4d58..a31a30f4c 100644
--- a/src/modules/m_spanningtree/rconnect.cpp
+++ b/src/modules/m_spanningtree/rconnect.cpp
@@ -28,13 +28,13 @@
/* $ModDep: m_spanningtree/resolvers.h m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/link.h m_spanningtree/treesocket.h m_spanningtree/rconnect.h */
-cmd_rconnect::cmd_rconnect (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util) : Command(Instance, "RCONNECT", "o", 2), Creator(Callback), Utils(Util)
+CommandRConnect::CommandRConnect (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util) : Command(Instance, "RCONNECT", "o", 2), Creator(Callback), Utils(Util)
{
this->source = "m_spanningtree.so";
syntax = "<remote-server-mask> <target-server-mask>";
}
-CmdResult cmd_rconnect::Handle (const std::vector<std::string>& parameters, User *user)
+CmdResult CommandRConnect::Handle (const std::vector<std::string>& parameters, User *user)
{
if (IS_LOCAL(user))
{
diff --git a/src/modules/m_spanningtree/rconnect.h b/src/modules/m_spanningtree/rconnect.h
index b29bea550..263621435 100644
--- a/src/modules/m_spanningtree/rconnect.h
+++ b/src/modules/m_spanningtree/rconnect.h
@@ -16,12 +16,12 @@
/** Handle /RCONNECT
*/
-class cmd_rconnect : public Command
+class CommandRConnect : public Command
{
Module* Creator; /* Creator */
SpanningTreeUtilities* Utils; /* Utility class */
public:
- cmd_rconnect (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util);
+ CommandRConnect (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util);
CmdResult Handle (const std::vector<std::string>& parameters, User *user);
};
diff --git a/src/modules/m_spanningtree/rsquit.cpp b/src/modules/m_spanningtree/rsquit.cpp
index 5407189b3..9e0dabca6 100644
--- a/src/modules/m_spanningtree/rsquit.cpp
+++ b/src/modules/m_spanningtree/rsquit.cpp
@@ -26,13 +26,13 @@
/* $ModDep: m_spanningtree/main.h m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/treesocket.h m_spanningtree/rsquit.h */
-cmd_rsquit::cmd_rsquit (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util) : Command(Instance, "RSQUIT", "o", 1), Creator(Callback), Utils(Util)
+CommandRSQuit::CommandRSQuit (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util) : Command(Instance, "RSQUIT", "o", 1), Creator(Callback), Utils(Util)
{
this->source = "m_spanningtree.so";
syntax = "<target-server-mask> [reason]";
}
-CmdResult cmd_rsquit::Handle (const std::vector<std::string>& parameters, User *user)
+CmdResult CommandRSQuit::Handle (const std::vector<std::string>& parameters, User *user)
{
TreeServer *server_target; // Server to squit
TreeServer *server_linked; // Server target is linked to
@@ -71,7 +71,7 @@ CmdResult cmd_rsquit::Handle (const std::vector<std::string>& parameters, User *
}
// XXX use protocol interface instead of rolling our own :)
-void cmd_rsquit::NoticeUser(User* user, const std::string &msg)
+void CommandRSQuit::NoticeUser(User* user, const std::string &msg)
{
if (IS_LOCAL(user))
{
diff --git a/src/modules/m_spanningtree/rsquit.h b/src/modules/m_spanningtree/rsquit.h
index eb4ae5f5b..0b62a6592 100644
--- a/src/modules/m_spanningtree/rsquit.h
+++ b/src/modules/m_spanningtree/rsquit.h
@@ -16,12 +16,12 @@
/** Handle /RCONNECT
*/
-class cmd_rsquit : public Command
+class CommandRSQuit : public Command
{
Module* Creator; /* Creator */
SpanningTreeUtilities* Utils; /* Utility class */
public:
- cmd_rsquit (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util);
+ CommandRSQuit (InspIRCd* Instance, Module* Callback, SpanningTreeUtilities* Util);
CmdResult Handle (const std::vector<std::string>& parameters, User *user);
void NoticeUser(User* user, const std::string &msg);
};