mIRC Homepage
Posted By: ricky_knuckles auto unban - 26/12/04 12:22 AM
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
Posted By: Iori Re: auto unban - 26/12/04 01:57 AM
Code:
on *:ban:#:{
  if $nick(#,$me,$remove($prefix,+)) && $banmask iswm $address($me,5) { mode # -b $v1 }
}
Posted By: Sigh Re: auto unban - 26/12/04 01:28 PM
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
Posted By: Iori Re: auto unban - 26/12/04 11:28 PM
Yeah good point about the uops level.
© mIRC Discussion Forums