Mercurial > wow > mailopener
diff Modules/OpenAll.lua @ 146:4b4e25bf2c2e
Fixed a bug in the OpenAll module where the remove string.replace function was being used.
| author | Zerotorescue |
|---|---|
| date | Tue, 28 Jun 2011 21:40:40 +0200 |
| parents | f662ee4d9c05 |
| children | 2b11229bf239 |
line wrap: on
line diff
--- a/Modules/OpenAll.lua Sat Feb 19 15:23:11 2011 +0100 +++ b/Modules/OpenAll.lua Tue Jun 28 21:40:40 2011 +0200 @@ -433,11 +433,11 @@ -- Return the type of mail a message subject is local knownAHSubjectPatterns = { - canceled = AUCTION_REMOVED_MAIL_SUBJECT:replace("%s", ""), - expired = AUCTION_EXPIRED_MAIL_SUBJECT:replace("%s", ""), - outbid = AUCTION_OUTBID_MAIL_SUBJECT:replace("%s", ""), - success = AUCTION_SOLD_MAIL_SUBJECT:replace("%s", ""), - won = AUCTION_WON_MAIL_SUBJECT:replace("%s", ""), + canceled = AUCTION_REMOVED_MAIL_SUBJECT:gsub("%s", ""), + expired = AUCTION_EXPIRED_MAIL_SUBJECT:gsub("%s", ""), + outbid = AUCTION_OUTBID_MAIL_SUBJECT:gsub("%s", ""), + success = AUCTION_SOLD_MAIL_SUBJECT:gsub("%s", ""), + won = AUCTION_WON_MAIL_SUBJECT:gsub("%s", ""), }; function mod:GetAuctionMailType(subject) if subject then
