Bot Lock/UnLock Channel

By Marius_Craciunoiu on May 10, 2004

This is a small and good snippet to to lock a channel, just copy the Snippet in the remote section (ALT + R).

; Made By me, Fedu` :)

on 400:text:*-lockchan*:#: {
  if ($1 == %c $+ -lockchan) { set %lc.r [ $rand(1,1000) ] $+ [ $rand(1,100) ] $+ [ $rand(a,z) ] $+ [ $rand(A,Z) ] | mode $chan +ik %lc.r | set %last.used.command lockchan | set %last.person $nick }
  else { halt }
}
on 400:text:*-unlockchan*:#: {
  if ($1 == %c $+ -unlockchan) { mode $chan -ik %lc.r | unset %lc.r | set %last.used.command unlockchan | set %last.person $nick }
  else { halt }
}

; If u see any problems please report them to: Me_Jmecherul@Yahoo.com
; Thank You

Comments

Sign in to comment.
DarthReven   -  Dec 02, 2004

also why use +i when +k puts a key on the room and if you don\'t have that key you can\'t enter even if you have an invite to my knowledge

 Respond  
DarthReven   -  Dec 02, 2004

ok i got an easyer key generator and here it is on :text::#: { if ($nick isop $chan) && (!%r.key $+ $chan) { if (-lockchan isin $1-) { set %r.key. $+ $chan $r(1,10) $+ $r(r,w) $+ $r(45,55) $+ $r(T,Z) | mode $chan +k %r.key. $+ $chan } | elseif (-unlockchan isin $1-) { mode $chan -k %r.key. $+ $chan | unset %r.key. $+ $chan } }

 Respond  
LIQUID_NiTrO   -  May 23, 2004

ok, what exactly does locking a chan do?

 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.