summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-09 14:39:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-09 14:39:07 +0000
commit3d7312f8af1becdbe458392e14ea64c904ee7b92 (patch)
tree8cc2699e70e6904046cf937803d058845e57ec0d /include
parent237766c84573c4a5439382fe6ba2afc026a18e09 (diff)
Changed parameters of OnPacketTransmit and OnPacketReceive to be much more useful
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1024 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/modules.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/modules.h b/include/modules.h
index b1f505e29..a040757f6 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -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