LOCKDOWN

By supergeo on May 25, 2005

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
 }

Comments

Sign in to comment.
Yoinx   -  May 31, 2005

you still havent fixed the topic commands.

 Respond  
PoiXon   -  May 26, 2005

and how would u Un-Lockdown it? and topic needs a chan like topic # The Channel has been shutdown

 Respond  
xDaeMoN   -  May 25, 2005

That\'s true.

 Respond  
Yoinx   -  May 25, 2005

Im not sure, but I think you still need a user level in on !:Op:#:{

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.