Mercurial > wow > itemauditor
diff Modules/Utils.lua @ 24:554b30908b33 v0.1
- Fixed a bug with the mail where items get recorded by the mail scanner and the bag scanner.
- Fixed some minor issues not visible to the user.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sun, 11 Jul 2010 09:24:33 -0700 |
parents | ff9a698caebc |
children | 003de902ae64 |
line wrap: on
line diff
--- a/Modules/Utils.lua Thu Jul 08 23:55:05 2010 -0700 +++ b/Modules/Utils.lua Sun Jul 11 09:24:33 2010 -0700 @@ -92,7 +92,7 @@ item_db[itemName] = tonumber(id) end -local SubjectPatterns = { +addon.SubjectPatterns = { AHCancelled = gsub(AUCTION_REMOVED_MAIL_SUBJECT, "%%s", ".*"), AHExpired = gsub(AUCTION_EXPIRED_MAIL_SUBJECT, "%%s", ".*"), AHOutbid = gsub(AUCTION_OUTBID_MAIL_SUBJECT, "%%s", ".*"), @@ -103,7 +103,7 @@ function addon:GetMailType(msgSubject) if msgSubject then - for k, v in pairs(SubjectPatterns) do + for k, v in pairs(self.SubjectPatterns) do if msgSubject:find(v) then return k end end end