summaryrefslogtreecommitdiff
path: root/shop2/main.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-01-12 18:15:24 +0000
committerubq323 <ubq323@ubq323.website>2023-01-12 18:15:24 +0000
commit6759f43dc967cdeb04713cb69e97292eefc7d14d (patch)
treec00b9c8d1b5461ceb19710aa581b4fbc1c1e00a2 /shop2/main.lua
parent6f9772202e3fd11ade9937e5f3540edc444f12da (diff)
shop2
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