]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/main.h
Store id in TreeServer, use TreeServer::GetID() to get the id (NOTE: it is std::string)
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / main.h
index 2052607c67564af1722b140a8312f6046f054fc2..41961dc099096adeb5445ff30bfeb977758294ec 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "inspircd.h"
 #include "modules.h"
+#include <stdarg.h>
 
 /** If you make a change which breaks the protocol, increment this.
  * If you  completely change the protocol, completely change the number.
@@ -26,7 +27,7 @@
  * Failure to document your protocol changes will result in a painfully
  * painful death by pain. You have been warned.
  */
-const long ProtocolVersion = 1105;
+const long ProtocolVersion = 1200;
 
 /** Forward declarations
  */
@@ -103,7 +104,7 @@ class ModuleSpanningTree : public Module
 
        /** Handle SQUIT
         */
-       int HandleSquit(const char** parameters, int pcnt, userrec* user, bool remote=false);
+       int HandleSquit(const char** parameters, int pcnt, userrec* user);
 
        /** Handle TIME
         */
@@ -141,6 +142,10 @@ class ModuleSpanningTree : public Module
         */
        void BroadcastTimeSync();
 
+       /** Attempt to send a message to a user
+        */
+       void RemoteMessage(userrec* user, const char* format, ...);
+
        /** Returns oper-specific MAP information
         */
        const std::string MapOperInfo(TreeServer* Current);
@@ -170,7 +175,7 @@ class ModuleSpanningTree : public Module
        virtual void OnUserQuit(userrec* user, const std::string &reason, const std::string &oper_message);
        virtual void OnUserPostNick(userrec* user, const std::string &oldnick);
        virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, const std::string &reason, bool &silent);
-       virtual void OnRemoteKill(userrec* source, userrec* dest, const std::string &reason);
+       virtual void OnRemoteKill(userrec* source, userrec* dest, const std::string &reason, const std::string &operreason);
        virtual void OnRehash(userrec* user, const std::string &parameter);
        virtual void OnOper(userrec* user, const std::string &opertype);
        void OnLine(userrec* source, const std::string &host, bool adding, char linetype, long duration, const std::string &reason);