From 3d7312f8af1becdbe458392e14ea64c904ee7b92 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Apr 2005 14:39:07 +0000 Subject: 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 --- include/modules.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include') 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 -- cgit v1.2.3