Quantcast

Add a spam-filter for the auto-item-use feature

Adrian L Lange [06-01-12 - 01:55]
Add a spam-filter for the auto-item-use feature
Filename
Monomyth.lua
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())