From 2a7d2b141d99bc5abda6389da358c397718dd8ad Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 1 Jun 2012 03:55:21 +0200 Subject: [PATCH] Add a spam-filter for the auto-item-use feature --- Monomyth.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Monomyth.lua b/Monomyth.lua index 7717f75..2d65aee 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -222,6 +222,12 @@ Monomyth:Register('BAG_UPDATE', function(bag, handled) end end) +ChatFrame_AddMessageEventFilter('CHAT_MSG_SYSTEM', function(self, event, message) + if(message == ERR_QUEST_ALREADY_DONE) then + return true + end +end) + hooksecurefunc('QuestLogTitleButton_OnClick', function(self) if(self.isHeader) then return end QuestLog_SetSelection(self:GetID()) -- 1.7.9.5