summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspircd.cpp4
-rw-r--r--src/modules.cpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 6a9c68847..b806776c2 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -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;
}
diff --git a/src/modules.cpp b/src/modules.cpp
index 266556dac..6f1236f60 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)