Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. #another crappy TCL code by Wyzeman
  2. #Stardate 2017 (WTF)
  3. #bot anti flood identifyed as charnumbernumbernumber or X9999
  4. #version 1.0
  5. #Des solutions cheap pour les moyens du bord!
  6. # aka
  7. #Priceless solutions for low profile budget!
  8.  
  9.  
  10. array set greetChan {
  11. 0 #SauvonsIRC
  12. # 1 #sector_x
  13. # 2 #quebec
  14. # 3 #tacomprislepatern
  15. }
  16. bind join * * onjoin
  17.  
  18.  
  19.  
  20. proc onjoin {nick host hand chan} {
  21.  
  22. set nickmatch 0
  23. set identmatch 0
  24. global greetChan
  25. foreach {index gchan} [array get greetChan] {
  26. if { $chan == $gchan } {
  27. set ident [string range $host 0 [expr [string first @ $host 0] -1]]
  28.  
  29. if {[regexp {(^[c-cCarton]+[a-zA-Z0-9]+$)} $nick] } {
  30. set nickmatch 1
  31. }
  32. #pour le ident mais presentement je le connait pas, je sais pas sil en a un fixe ou semi fixe.
  33. # if {[regexp {(^~)+([a-zA-Z]{1})+([0-9]{4})} $ident] && [string length $ident] <= 6} {
  34. # set identmatch 1
  35. # }
  36.  
  37.  
  38. if { $identmatch || $nickmatch} {
  39. puthelp "PRIVMSG $chan :vivre le roi carton 49eme"
  40. }
  41. }
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement