mIRC Home    About    Download    Register    News    Help

Topic Options
#106189 - 26/12/04 12:22 AM auto unban
ricky_knuckles Offline
Fjord artisan

Registered: 11/11/04
Posts: 332
i use 2 connections
i was looking for a way if a ban is set to have which ever one is still present and owner to remove the ban
_________________________
The Kodokan will move you, one way or another.

Top
#106190 - 26/12/04 01:57 AM Re: auto unban
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
Code:
on *:ban:#:{
  if $nick(#,$me,$remove($prefix,+)) && $banmask iswm $address($me,5) { mode # -b $v1 }
}

Top
#106191 - 26/12/04 01:28 PM Re: auto unban
Sigh Offline
Fjord artisan

Registered: 28/08/03
Posts: 314
Nice idea with $prefix, but there are some networks that have levels of status lower than voice (uops on Webnet for example). With this in mind I'd check $nick(#,$me,$deltok($prefix .,-1,43)) instead. It assumes of course that if + isn't present in $prefix (don't know how often that happens) that there is nothing higher than voice status on that server, but I believe $nick(#,$me,@%) is safe to use in most cases since the networks I've seen with higher access levels will also have +o set on a nick. Less important but you could also use $ial($me) in place of $address($me,5) for sake of shortening it

Top
#106192 - 26/12/04 11:28 PM Re: auto unban
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
Yeah good point about the uops level.

Top