X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules.cpp;h=9b6a0d826a5afdc3d10c8adb6035c2ffce3dfa42;hb=59b1a8955142935b02af6446005ab47fc7c3fc8c;hp=266556dac1abd622f70387432a3dbf119f117f80;hpb=39ca58c38ce96a37586d5cef381e321709be3326;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules.cpp b/src/modules.cpp index 266556dac..9b6a0d826 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -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());