]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/commands.h
Fix sending DEL for caps which have not been advertised yet.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / commands.h
index b98512578338de743f20a2da0caf55e72d6bd27f..f32ab9bb27352cdb528594a77dfe112889bbb2d3 100644 (file)
@@ -22,6 +22,7 @@
 #include "servercommand.h"
 #include "commandbuilder.h"
 #include "remoteuser.h"
+#include "modules/away.h"
 
 namespace SpanningTree
 {
@@ -241,15 +242,21 @@ class CommandResync : public ServerOnlyServerCommand<CommandResync>
 
 class SpanningTree::CommandAway : public UserOnlyServerCommand<SpanningTree::CommandAway>
 {
+ private:
+       Away::EventProvider awayevprov;
+
  public:
-       CommandAway(Module* Creator) : UserOnlyServerCommand<SpanningTree::CommandAway>(Creator, "AWAY", 0, 2) { }
+       CommandAway(Module* Creator)
+               : UserOnlyServerCommand<SpanningTree::CommandAway>(Creator, "AWAY", 0, 2)
+               , awayevprov(Creator)
+       {
+       }
        CmdResult HandleRemote(::RemoteUser* user, Params& parameters);
 
        class Builder : public CmdBuilder
        {
         public:
                Builder(User* user);
-               Builder(User* user, const std::string& msg);
        };
 };
 
@@ -313,7 +320,7 @@ class SpanningTree::CommandPong : public ServerOnlyServerCommand<SpanningTree::C
        RouteDescriptor GetRouting(User* user, const Params& parameters) CXX11_OVERRIDE { return ROUTE_UNICAST(parameters[0]); }
 };
 
-class CommandSave : public ServerCommand
+class DllExport CommandSave : public ServerCommand
 {
  public:
        /** Timestamp of the uuid nick of all users who collided and got their nick changed to uuid