Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bind msgm - * noInsultMe
  2. array set ::userinsults {}
  3. set ::userinsults($nick) 0
  4. proc noInsultMe {nick uhost hand text} {
  5. global userinsults
  6. set insults {
  7. "put?"
  8. "guarr?"
  9. "zorr?"
  10. }
  11. foreach insult $insults {
  12. if {[string match -nocase $insult $text]} {
  13. incr ::userinsults($nick)
  14. putserv "privmsg $nick :ha insultado $::userinsults($nick) veces"
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement