New Page, Remotes.
on *:ban:#:{
if (%protect. [ $+ [ $banmask ] ] == $null) { halt }
mode $chan +e $banmask
if ($nick != $me) {
kick $chan $nick Nice try, $nick $+ .
mode $chan +b $address($nick,2)
}
mode $chan -b $banmask
msg $chan -3Protection engaged- $banmask was unbanned -DiStUrBiRc v2.0-
}
on *:rawmode:#:{
if (-e isin $1-) {
if (%protect. [ $+ [ $2 ] ] != $null) {
mode $chan +e $2
}
}
}
on *:join:#:{
if (%protect. [ $+ [ $address($nick,2) ] ]) {
mode $chan +e $address($nick,2)
}
}
on *:kick:#:{
set %kchan $chan
if ($knick == $me) {
/cs unban %kchan
}
}
alias setprotect {
set %protect. [ $+ [ $address($$1,0) ] ] 0
set %protect. [ $+ [ $address($$1,1) ] ] 0
set %protect. [ $+ [ $address($$1,2) ] ] 0
set %protect. [ $+ [ $address($$1,3) ] ] 0
set %protect. [ $+ [ $address($$1,4) ] ] 0
set %protect. [ $+ [ $address($$1,5) ] ] 0
set %protect. [ $+ [ $address($$1,6) ] ] 0
set %protect. [ $+ [ $address($$1,7) ] ] 0
set %protect. [ $+ [ $address($$1,8) ] ] 0
}
alias unprotect {
unset %protect. [ $+ [ $address($$1,0) ] ]
unset %protect. [ $+ [ $address($$1,1) ] ]
unset %protect. [ $+ [ $address($$1,2) ] ]
unset %protect. [ $+ [ $address($$1,3) ] ]
unset %protect. [ $+ [ $address($$1,4) ] ]
unset %protect. [ $+ [ $address($$1,5) ] ]
unset %protect. [ $+ [ $address($$1,6) ] ]
unset %protect. [ $+ [ $address($$1,7) ] ]
unset %protect. [ $+ [ $address($$1,8) ] ]
}
menu nicklist {
Ban Protect
.Add $$1 $+ :setprotect $$1 | echo -a Protection set for $$1
.Del $$1 $+ :unprotect $$1 | echo -a $$1 unprotected
}
the answer to that onw is nice and simple Levy.. in order to prevent being banned from channel you need to either be (A) an AOP and been banned by either an AOP or a HOP... or (B) an SOP and been banned by an SOP, AOP, HOP.
so basically you must have equal or higher status than the banner for the script to work... prefrebly higher. the bot or yourself should have SOP or Owner status
kid, read the help file on while loops, and while you are at it, hash tables.
Also, the msg \"$chan -3Protection engaged- $banmask was unbanned -DiStUrBiRc v2.0-\" is umm... how do I put this politely....nevermind
lets just say just remove it, people can see $banmask being unbanned with the mode message, so its redundant,
It doesnt have that much of a revenge, might be good for some guys. And the \"message\" is just gay..\"msg $chan -3Protection engaged- $banmask was unbanned -DiStUrBiRc v2.0-
}\"
That part.. No need at all!
Otherwhize, its a good one if your not looking for any revenge at ALL. But it probably could have been made easier ;)
Nice job anyway.