View Single Post
10-11-13, 03:56 AM   #10
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
Oh i know, i do have both, but those just aren't filtered:

Code:
local topattern = function(text)
	text = gsub(text, "%%%d?$?c", ".+")
	text = gsub(text, "%%%d?$?s", ".+")
	text = gsub(text, "%%%d?$?d", "%%d+")
	text = gsub(text, "([%(%)])", "%%%1")

	return text
end

local patterns = {
	topattern(CLEARED_AFK),
	topattern(MARKED_AFK),
	topattern(CLEARED_DND),
	topattern(MARKED_DND),

	topattern(NEW_TITLE_EARNED),
	topattern(ERR_FRIEND_ONLINE_SS),
	topattern(BN_INLINE_TOAST_FRIEND_ONLINE),
	topattern(ERR_FRIEND_OFFLINE_S),
	topattern(BN_INLINE_TOAST_FRIEND_OFFLINE),
	topattern(ERR_LEARN_SPELL_S),
	topattern(ERR_LEARN_ABILITY_S),
	topattern(ERR_LEARN_PASSIVE_S),
	topattern(ERR_SPELL_UNLEARNED_S),
	topattern(ERR_PET_SPELL_UNLEARNED_S),
	topattern(ERR_GUILD_INTERNAL),
	topattern(ERR_INSTANCE_GROUP_ADDED_S),
	topattern(ERR_INSTANCE_GROUP_REMOVED_S),
	topattern(ERR_BG_PLAYER_LEFT_S),
	topattern(ERR_BG_PLAYER_JOINED_SS),
	topattern(ROLE_CHANGED_INFORM),
	topattern(ROLE_CHANGED_INFORM_WITH_SOURCE),
}
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
  Reply With Quote