Advertisement
Guest User

Untitled

a guest
May 4th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. # ignores
  2. # a KVIRC script
  3.  
  4. # v0.1
  5. # 20160315
  6.  
  7. # Place this code in Scripting -> Event Editor -> OnChannelMessage -> [create new handler] ignores
  8.  
  9. # ignores arbitrary strings globally in channel messages.
  10. # set your ignore strings in %ignoreList which is a comma sperated list
  11. # debug on off with %debug true or false (no quotes)
  12.  
  13. %ignoreList = "xxx"
  14. %debug = false
  15.  
  16. # -------- DONOT EDIT ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ---------
  17.  
  18. %ignores = $str.split(",", %ignoreList)
  19. foreach (%searchTerm, %ignores)
  20. {
  21. if ($str.grep(%searchTerm, $3))
  22. {
  23. if (%debug == true)
  24. echo -d DEBUG: ignored message in $chan.name() for matching: %searchTerm (set debug to false to stop these messages)
  25. halt
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement