WoWInterface SVN _GautrReply

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 8 to Rev 7
    Reverse comparison

Rev 8 → Rev 7

_GautrReply.lua
160,12 → 160,11
--[[ Modified Decount code, Credits goes to Tekkub ]]--
local function filter(self, event, msg)
for _,str in pairs(filterStrings) do
if msg:lower():match(Defaults.Prefix..str) then if Defaults.Debug then print("Filtered Incoming Command: " .. "|cffffd700" ..str:upper().."|r in |cffffd700" .. event.."|r") end return true end
if msg:lower():match(str) then if Defaults.Debug then print("Filtered Incoming Command: " .. "|cffffd700" ..str:upper().."|r in |cffffd700" .. event.."|r") end return true end
end
end
 
--for _,event in pairs{"CHAT_MSG_WHISPER", "CHAT_MSG_PARTY", "CHAT_MSG_PARTY_LEADER"} do
for _,event in pairs{"CHAT_MSG_WHISPER"} do
for _,event in pairs{"CHAT_MSG_WHISPER", "CHAT_MSG_PARTY", "CHAT_MSG_PARTY_LEADER"} do
ChatFrame_AddMessageEventFilter(event, filter)
end