Cacao7w7

msnsmsmms

Jun 27th, 2018
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. # Restricted access TCL V1.1
  2. # by Xipetotec - Xipetotec@mail.bg
  3.  
  4. ####################################
  5. # Debug
  6. ####################################
  7. # there were 2 bugs:
  8. # 1) I forget the global line in the proc
  9. # 2) The ban was a global one, stupid isn't it?
  10.  
  11. # this tcl make a restricted access
  12. # to a specify channel.
  13. # only pples who are in bot list can
  14. # join channel.
  15.  
  16. ####################################
  17. # Values to modify
  18. ####################################
  19.  
  20. # canal donde estara activa la tcl
  21.  
  22. set r_chan "#Mors-adm"
  23.  
  24. set r_ban 1
  25. # if 0, the tcl just kick the user - 0 kick - 1 ban
  26.  
  27. set r_time 60
  28. # duration of ban, 0 for perm, in minutes - duracion del ban en minutos
  29.  
  30. ###################################
  31. # You may not modify it
  32. ##################################
  33.  
  34. bind join -|- "$r_chan *!*@*" out
  35.  
  36. proc out { nick uhost hand chan } {
  37. global r_ban r_time r_chan
  38. if { ![validuser $hand] } {
  39. putserv "KICK $chan $nick :Lo Siento Canal Restringido || Solo para administradores/devels"
  40. if { $r_ban == 1 } {
  41. newchanban $chan [string trimleft [maskhost [getchanhost $nick $chan]] ~] CrazyHelp "May find your channel" $r_time
  42. }
  43. }
  44. }
  45.  
  46. putlog "Restrict 1.1 loaded"
Add Comment
Please, Sign In to add comment