]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules.h
Changed parameters of OnPacketTransmit and OnPacketReceive to be much more useful
[user/henk/code/inspircd.git] / include / modules.h
index b1f505e295bc1ef5fe135ff7fe09b1c328eb2e8b..a040757f67a18980f26e5c581269452420c789b6 100644 (file)
@@ -173,21 +173,19 @@ class Module : public classbase
        virtual void OnUserPart(userrec* user, chanrec* channel);
 
        /** Called before a packet is transmitted across the irc network between two irc servers.
-        * The packet is represented as a char*, as it should be regarded as a buffer, and not a string.
         * This allows you to easily represent it in the correct ways to implement encryption, compression,
         * digital signatures and anything else you may want to add. This should be regarded as a pre-processor
         * and will be called before ANY other operations within the ircd core program.
         */
-       virtual void OnPacketTransmit(char *p);
+       virtual void OnPacketTransmit(std::string &data, std::string serv);
 
        /** Called after a packet is received from another irc server.
-        * The packet is represented as a char*, as it should be regarded as a buffer, and not a string.
         * This allows you to easily represent it in the correct ways to implement encryption, compression,
         * digital signatures and anything else you may want to add. This should be regarded as a pre-processor
         * and will be called immediately after the packet is received but before any other operations with the
         * core of the ircd.
         */
-       virtual void OnPacketReceive(char *p);
+       virtual void OnPacketReceive(std::string &data, std::string serv);
 
        /** Called on rehash.
         * This method is called prior to a /REHASH or when a SIGHUP is received from the operating