mIRC Home    About    Download    Register    News    Help

Print Thread
Timed ban after disconnection. #40125 06/08/03 11:18 PM
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?

Re: Timed ban after disconnection. #40126 06/08/03 11:20 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
/help $ibl


new username: tidy_trax
Re: Timed ban after disconnection. #40127 06/08/03 11:27 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
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.

Re: Timed ban after disconnection. #40128 06/08/03 11:36 PM
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?

Re: Timed ban after disconnection. #40129 06/08/03 11:43 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
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