All pastes #93932 Raw Edit

Neronix

public text v1 · immutable
#93932 ·published 2006-07-20 21:37 UTC
rendered paste body
			add = {
				name = "Add",
				desc = "Add a filter that if matched, allows a message to be displayed. The pattern should match lowercase characters. Advanced users can pass any valid lua regex.",
				usage = "'/earplug add <pattern>' e.g. /earplug add ubrs",
				type = "text",
				get = false,
				set = function(pat)
					-- If we're using default patterns, remove them
					if EarPlugPatterns == defaultPatterns then EarPlugPatterns = {} end
					table.insert(EarPlugPatterns, pat)
                    EarPlug:Print("Added pattern |cfff00ff%s|r to the list", pat)
				end,
			},