]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/main.h
Fix error message on OPTCOMMON mismatch
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / main.h
index 3997c148c082c86dbce2514f8d33934e0bd1d60d..ce7709189dad36ed37230655d658ece35c812b78 100644 (file)
@@ -31,11 +31,7 @@ const long MinCompatProtocol = 1201;
 
 /** Forward declarations
  */
-class CommandRConnect;
-class CommandRSQuit;
-class CommandSVSJoin;
-class CommandSVSPart;
-class CommandSVSNick;
+class SpanningTreeCommands;
 class SpanningTreeUtilities;
 class CacheRefreshTimer;
 class TreeServer;
@@ -46,16 +42,12 @@ class Autoconnect;
  */
 class ModuleSpanningTree : public Module
 {
-       CommandRConnect* command_rconnect;
-       CommandRSQuit* command_rsquit;
-       CommandSVSJoin* command_svsjoin;
-       CommandSVSPart* command_svspart;
-       CommandSVSNick* command_svsnick;
-       SpanningTreeUtilities* Utils;
-
+       SpanningTreeCommands* commands;
        void RedoConfig(Module* mod);
 
  public:
+       SpanningTreeUtilities* Utils;
+
        CacheRefreshTimer *RefreshTimer;
        /** Set to true if inside a spanningtree call, to prevent sending
         * xlines and other things back to their source
@@ -65,6 +57,7 @@ class ModuleSpanningTree : public Module
        /** Constructor
         */
        ModuleSpanningTree();
+       void init();
 
        /** Shows /LINKS
         */
@@ -82,18 +75,6 @@ class ModuleSpanningTree : public Module
         */
        void ShowMap(TreeServer* Current, User* user, int depth, int &line, char* names, int &maxnamew, char* stats);
 
-       /** Handle remote MOTD
-        */
-       ModResult HandleMotd(const std::vector<std::string>& parameters, User* user);
-
-       /** Handle remote ADMIN
-        */
-       ModResult HandleAdmin(const std::vector<std::string>& parameters, User* user);
-
-       /** Handle remote STATS
-        */
-       ModResult HandleStats(const std::vector<std::string>& parameters, User* user);
-
        /** Handle MAP command
         */
        bool HandleMap(const std::vector<std::string>& parameters, User* user);
@@ -102,10 +83,6 @@ class ModuleSpanningTree : public Module
         */
        ModResult HandleSquit(const std::vector<std::string>& parameters, User* user);
 
-       /** Handle TIME
-        */
-       ModResult HandleTime(const std::vector<std::string>& parameters, User* user);
-
        /** Handle remote WHOIS
         */
        ModResult HandleRemoteWhois(const std::vector<std::string>& parameters, User* user);