summaryrefslogtreecommitdiff
path: root/shop2/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'shop2/main.lua')
-rw-r--r--shop2/main.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/shop2/main.lua b/shop2/main.lua
index 1def219..0a70396 100644
--- a/shop2/main.lua
+++ b/shop2/main.lua
@@ -45,10 +45,14 @@ local function proctrans(tr)
local function refund() if meta['return'] then sendws { type="make_transaction", to=meta['return'], amount=tr.value } end end
local mtn = tr.sent_metaname
- local idesc = items[mtn]
+ local idesc
+ for _,i in ipairs(items) do
+ if i.adr = mtn then idesc = i end
+ end
if not idesc then
-- some other metaname that has nothing to do with us
-- presumably some other service @ac.kst. so just ignore it
+ print("(debug) don't know what '"..mtn.."' means, ignoring")
-- tell("(debug) i didn't recognise that metaname so no transaction occurs")
return
end