]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Changed triggering time of OnBackgroundTimer to 5 secs (from 8)
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 22 Feb 2006 20:14:33 +0000 (20:14 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 22 Feb 2006 20:14:33 +0000 (20:14 +0000)
Fixed typo in new functions

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3288 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd.cpp
src/modules.cpp

index 6a9c68847d7f4225226988cfc11587c4569fd1ae..b806776c283c65904af143dd078fdce4d3910dc1 100644 (file)
@@ -637,14 +637,14 @@ int InspIRCd::Run()
                 * timing using this event, so we dont have to
                 * time this exactly).
                 */
-               if (((TIME % 8) == 0) && (!expire_run))
+               if (((TIME % 5) == 0) && (!expire_run))
                {
                        expire_lines();
                        FOREACH_MOD(I_OnBackgroundTimer,OnBackgroundTimer(TIME));
                        expire_run = true;
                        continue;
                }
-               else if ((TIME % 8) == 1)
+               else if ((TIME % 5) == 1)
                {
                        expire_run = false;
                }
index 266556dac1abd622f70387432a3dbf119f117f80..6f1236f605a00765d1d18898b39aa9dd64b0c5c3 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)