mIRC Home    About    Download    Register    News    Help

Print Thread
#106189 26/12/04 12:22 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
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.
#106190 26/12/04 01:57 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
on *:ban:#:{
  if $nick(#,$me,$remove($prefix,+)) && $banmask iswm $address($me,5) { mode # -b $v1 }
}

#106191 26/12/04 01:28 PM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
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

#106192 26/12/04 11:28 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Yeah good point about the uops level.


Link Copied to Clipboard