mIRC Homepage
Posted By: Maveric Timed ban after disconnection. - 06/08/03 11:18 PM
I use timers with all of my bans (/ban -uN#), and when I disconnect (due to netsplits, etc) the timers are gone. Is there anyway to make it an offline timer so it stays active from disconnect to connect? I have thought of making my own timer to unban them, but problem is that when you do a /mode or /ban -r it doesn't check to see if the ban is still there. Any ideas?
Posted By: pheonix Re: Timed ban after disconnection. - 06/08/03 11:20 PM
/help $ibl
Posted By: codemastr Re: Timed ban after disconnection. - 06/08/03 11:27 PM
To elaborate on what pheonix said, you use /timer, and $ibl can be used to determine if the ban still exists.
Posted By: Maveric Re: Timed ban after disconnection. - 06/08/03 11:36 PM
So in other words I have to use $ibl to go through each and evey ban in the list?
Posted By: pheonix Re: Timed ban after disconnection. - 06/08/03 11:43 PM
each time you ban someone set the address to a variable called %ban

Code:
alias check {
var %i 1
while (%i <= $ibl(0)) {
if ($ibl(%i) == %ban) {
set %found $true
}
inc %i
}
$iif(%found,return $true,ban -u $+ $1 %ban)
unset %found
}

/check <time for ban>
© mIRC Discussion Forums