Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. bind msgm - * noInsultMe
  2. array set ::userinsults {}
  3. set ::userinsults($nick) 0
  4.  
  5.  
  6.  
  7. proc noInsultMe {nick uhost hand text} {
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. global userinsults
  15.  
  16.  
  17.  
  18. set insults {
  19. "put?"
  20. "guarr?"
  21. "zorr?"
  22.  
  23. }
  24. array set ::userinsults {}
  25.  
  26.  
  27.  
  28. foreach insult $insults {
  29. if {[string match -nocase $insult $text]} {
  30.  
  31.  
  32. incr ::userinsults($nick)
  33.  
  34.  
  35.  
  36. putserv "privmsg $nick :ha insultado $::userinsults($nick) veces"
  37.  
  38.  
  39.  
  40.  
  41.  
  42. }
  43.  
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement