]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/commands.h
m_spanningtree Remove unneeded #includes
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / commands.h
index d08835ccc86b752b2e824d89a2f7298076768f26..c7dc08b59ad9a341fc6bc86c1c27c969e0124614 100644 (file)
@@ -17,8 +17,7 @@
  */
 
 
-#ifndef M_SPANNINGTREE_COMMANDS_H
-#define M_SPANNINGTREE_COMMANDS_H
+#pragma once
 
 #include "main.h"
 
@@ -40,7 +39,6 @@ class CommandRSQuit : public Command
         CommandRSQuit(Module* Callback, SpanningTreeUtilities* Util);
         CmdResult Handle (const std::vector<std::string>& parameters, User *user);
                RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
-        void NoticeUser(User* user, const std::string &msg);
 };
 
 class CommandSVSJoin : public Command
@@ -60,7 +58,7 @@ class CommandSVSPart : public Command
 class CommandSVSNick : public Command
 {
  public:
-       CommandSVSNick(Module* Creator) : Command(Creator, "SVSNICK", 2) { flags_needed = FLAG_SERVERONLY; }
+       CommandSVSNick(Module* Creator) : Command(Creator, "SVSNICK", 3) { flags_needed = FLAG_SERVERONLY; }
        CmdResult Handle (const std::vector<std::string>& parameters, User *user);
        RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
 };
@@ -85,16 +83,19 @@ class CommandOpertype : public Command
        CmdResult Handle (const std::vector<std::string>& parameters, User *user);
        RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) { return ROUTE_BROADCAST; }
 };
+class TreeSocket;
 class CommandFJoin : public Command
 {
+       /** Remove all modes from a channel, including statusmodes (+qaovh etc), simplemodes, parameter modes.
+        * This does not update the timestamp of the target channel, this must be done seperately.
+        */
+       static void RemoveStatus(Channel* c);
+       static void ApplyModeStack(User* srcuser, Channel* c, irc::modestacker& stack);
+       bool ProcessModeUUIDPair(const std::string& item, TreeSocket* src_socket, Channel* chan, irc::modestacker* modestack);
  public:
        CommandFJoin(Module* Creator) : Command(Creator, "FJOIN", 3) { flags_needed = FLAG_SERVERONLY; }
        CmdResult Handle (const std::vector<std::string>& parameters, User *user);
        RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) { return ROUTE_BROADCAST; }
-       /** Remove all modes from a channel, including statusmodes (+qaovh etc), simplemodes, parameter modes.
-        * This does not update the timestamp of the target channel, this must be done seperately.
-        */
-       void RemoveStatus(User* source, parameterlist &params);
 };
 class CommandFMode : public Command
 {
@@ -151,5 +152,3 @@ class SpanningTreeCommands
        CommandFName fname;
        SpanningTreeCommands(ModuleSpanningTree* module);
 };
-
-#endif