Just a simple channel lockdown. You can add timers to it and auto deops and such, but here's the basis for it. To use, put it in your remotes. Type /lockdown or choose from the menu. To turn off type /unlock or choose from the menu.
Changes:
Removed alias "l". Didn't really need 2
Added Unlock alias
Made it channel specific
Added user level
Fixed topic
Thanks for pointing that stuff out guys.
alias lockdown {
set %chanl $active
if ($me isop %chanl) {
mode %chanl +mi
topic # The channel has been locked down.
set %lockdown on
}
}
alias unlock {
if ($me isop %chanl) {
unset %lockdown
mode %chanl -mi
topic # The channel is no longer on lock down.
unset %chanl
}
}
on !*:Op:#:{
if (%lockdown == on) {
mode $chan -o $nick
notice $nick $nick Do not attempt to op somebody during a lockdown. }
}
menu * {
Lockdown
.On: lockdown
.Off: unlock
}