mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2003
Posts: 18
M
Maveric Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Mar 2003
Posts: 18
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?

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
/help $ibl


new username: tidy_trax
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
To elaborate on what pheonix said, you use /timer, and $ibl can be used to determine if the ban still exists.

Joined: Mar 2003
Posts: 18
M
Maveric Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Mar 2003
Posts: 18
So in other words I have to use $ibl to go through each and evey ban in the list?

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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>


new username: tidy_trax

Link Copied to Clipboard