]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
Decide that it wasn't quite appropriate :(
[user/henk/code/inspircd.git] / src / modules.cpp
index 266556dac1abd622f70387432a3dbf119f117f80..9b6a0d826a5afdc3d10c8adb6035c2ffce3dfa42 100644 (file)
@@ -405,6 +405,7 @@ long Server::GetChannelCount()
 
 chanrec* Server::GetChannelIndex(long index)
 {
+       int target = 0;
        for (chan_hash::iterator n = chanlist.begin(); n != chanlist.end(); n++, target++)
        {
                if (index == target)
@@ -413,6 +414,11 @@ chanrec* Server::GetChannelIndex(long index)
        return NULL;
 }
 
+void Server::AddTimer(InspTimer* T)
+{
+       ::AddTimer(T);
+}
+
 void Server::SendOpers(std::string s)
 {
        WriteOpers("%s",s.c_str());