Quote:
Originally Posted by Alien
Can you explain a little more specifically about how the idleness meter works? Mine always stay at idleness, which is misleading when sometimes up to 10-15 of us are having a lively chat.. Can I reduce the math in this to allow it to understand it's actually active? 
|
Alien,
the code in particular you are interested in is in admincp/ircadmin.php, it looks like this:
---- ircadmin.php ------------
if ($channel['activity'] > 100) {
$alevel = 5;
}
else if($channel['activity'] == 0) {
$alevel = 0;
}
else {
$channel['activity'] *= .05;
$alevel = round($channel['activity']);
if ($alevel < 1) {
$alevel = 1;
}
}
--------------------------------
basically, the part you should probably toy around with is the .05 value. $channel['activity'] is the value of the activity (range: 0 - 100+) that the bot will update the database with. This value is determined in ircrefresh.tcl. When the bot decides to update, it will update the database with the value that it currently has. Then ircadmin.php will fetch this value and call it $channel['activity'] and determine which image to display according to this value by multiplying that value * .05 and rounding it. It only does this calculation if ircrefresh reports an activity level < 100, otherwise it will display the 'most active' image.
In your case, since 15 users dont seem to be generating as much activity as you'd like, increasing the .05 should fix your situation. It would be a trial and error method until you get it just right for you channel.
hope this helps
- er0sion