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 --- src/modules.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 1b17a61e2..ad4e00c0a 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -30,6 +30,9 @@ void Module::OnUserConnect(userrec* user) { } void Module::OnUserQuit(userrec* user) { } void Module::OnUserJoin(userrec* user, chanrec* channel) { } void Module::OnUserPart(userrec* user, chanrec* channel) { } +void Module::OnPacketTransmit(char *p) { } +void Module::OnPacketReceive(char *p) { } +void Module::OnRehash() { } Version Module::GetVersion() { return Version(1,0,0,0); } // server is a wrapper class that provides methods to all of the C-style @@ -49,9 +52,9 @@ void Server::SendOpers(string s) WriteOpers("%s",s.c_str()); } -void Server::Debug(string s) +void Server::Log(int level, string s) { - debug("%s",s.c_str()); + log(level,"%s",s.c_str()); } void Server::Send(int Socket, string s) @@ -214,3 +217,9 @@ int FileReader::FileSize() } +vector modules(255); +vector factory(255); + +int MODCOUNT = -1; + + -- cgit v1.3.1-10-gc9f91