summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2003-02-07 21:15:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2003-02-07 21:15:27 +0000
commit014ac7aa42b1ad1c62fa15366bc8fc2b3ef97488 (patch)
treea6b613ea94aef9e46034e1bc66e3a319b6bcd460 /src/modules.cpp
parenta83b933a88f2dd117d21c721490f32eb7da8cded (diff)
Changed to using LogLevels
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@163 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp13
1 files changed, 11 insertions, 2 deletions
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<Module*> modules(255);
+vector<ircd_module*> factory(255);
+
+int MODCOUNT = -1;
+
+