Adjust pattern to also match the German language string.

This commit is contained in:
Andrew Tomaka 2011-08-06 19:41:16 -04:00
parent ce0420e143
commit 40afbe4f93

View file

@ -12,7 +12,7 @@ function core:OnEnable()
end
function core:TrackGems(_,message)
lastGem = message:match(TRADESKILL_LOG_FIRSTPERSON:gsub("%%s", "(.+)"))
lastGem = message:match(TRADESKILL_LOG_FIRSTPERSON:gsub("%%%S-s", "(.+)"))
if lastGem == nil or lastGem == "" then return end
self:RegisterEvent('ITEM_PUSH','StackGems')