Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ignores
- # a KVIRC script
- # v0.1
- # 20160315
- # Place this code in Scripting -> Event Editor -> OnChannelMessage -> [create new handler] ignores
- # ignores arbitrary strings globally in channel messages.
- # set your ignore strings in %ignoreList which is a comma sperated list
- # debug on off with %debug true or false (no quotes)
- %ignoreList = "xxx"
- %debug = false
- # -------- DONOT EDIT ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ---------
- %ignores = $str.split(",", %ignoreList)
- foreach (%searchTerm, %ignores)
- {
- if ($str.grep(%searchTerm, $3))
- {
- if (%debug == true)
- echo -d DEBUG: ignored message in $chan.name() for matching: %searchTerm (set debug to false to stop these messages)
- halt
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement