Update FilterChecker.xml

master
AardCrowley 2 years ago committed by GitHub
parent 70c38f37e1
commit 278972cc70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,12 +41,18 @@ dofile(GetInfo(60) .. "aardwolf_colors.lua")
require 'gmcphelper' require 'gmcphelper'
filterTable = { filterTable = {
{filter = "transcendence", channel = "epics", action = "ColourNote('white', 'blue', 'Transcendence mentioned!')", include="tran"}, {filter = "transcendence", channel = "epics", sound = "gametalk.wav", include = "tran"},
{filter = "test", channel = "gtell", action = "Send('smile')", include=""}, {filter = "transcendence", channel = "gtell", sound = "gametalk.wav", include = "tran"},
{filter = "yuna", channel = "say", sound = "gclan.wav", include = "yun"},
{filter = "yuna", channel = "epics", sound = "gclan.wav", include = "yun"},
{filter = "yuna", channel = "gtell", sound = "gclan.wav", include = "yun"},
{filter = "yuna", channel = "clantalk", sound = "gclan.wav", include = "yun"},
{filter = "yuna", channel = "gossip", sound = "gclan.wav", include = "yun"},
} }
function OnPluginBroadcast(msg, id, name, text) function OnPluginBroadcast(msg, id, name, text)
if (id == "3e7dedbe37e44942dd46d264") and (text == "comm.channel") then if (id == "3e7dedbe37e44942dd46d264") and (text == "comm.channel") then
if gmcp("comm.channel.player")) ~= gmcp("char.base.name") then
local msg = strip_colours(gmcp("comm.channel.msg")):upper() local msg = strip_colours(gmcp("comm.channel.msg")):upper()
local doAction = "" local doAction = ""
for _,v in ipairs(filterTable) do for _,v in ipairs(filterTable) do
@ -59,6 +65,7 @@ function OnPluginBroadcast(msg, id, name, text)
end end
end end
end end
end
function filterCheck(str, filter, include) function filterCheck(str, filter, include)
local start, matchFound, mFilter = 0, false, include .. "[%w%p]+" local start, matchFound, mFilter = 0, false, include .. "[%w%p]+"

Loading…
Cancel
Save