From 014ac7aa42b1ad1c62fa15366bc8fc2b3ef97488 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 7 Feb 2003 21:15:27 +0000 Subject: Changed to using LogLevels git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@163 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index c2896f4cb..9b750e599 100644 --- a/include/modules.h +++ b/include/modules.h @@ -90,6 +90,12 @@ class Module : public classbase * and the details of the channel they have left is available in the variable chanrec *channel */ virtual void OnUserPart(userrec* user, chanrec* channel); + + + virtual void Module::OnPacketTransmit(char *p); + virtual void Module::OnPacketReceive(char *p); + virtual void OnRehash(); + }; @@ -114,11 +120,11 @@ class Server : public classbase * This method sends a server notice to all opers with the usermode +s. */ virtual void SendOpers(string s); - /** Sends a debug string. - * This method writes a line of text to the debug log. If debugging is disabled - * in the configuration, this command has no effect. + /** Writes a log string. + * This method writes a line of text to the log. If the level given is lower than the + * level given in the configuration, this command has no effect. */ - virtual void Debug(string s); + virtual void Log(int level, string s); /** Sends a line of text down a TCP/IP socket. * This method writes a line of text to an established socket, cutting it to 510 characters * plus a carriage return and linefeed if required. @@ -305,4 +311,7 @@ class ModuleFactory : public classbase virtual Module * CreateModule() = 0; }; + +typedef DLLFactory ircd_module; + #endif -- cgit v1.3.1-10-gc9f91