summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-04 21:11:40 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-04 21:11:40 +0100
commit07997a54f4c082b6c2499f904825fb51394c9bf5 (patch)
treedcb68e21ff7e3f40e244e586b2e5cea3de5db507 /api.lua
parentf84e6d8db5fa9f5c068432a9c3100f55d3188f51 (diff)
Readd awards
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.lua b/api.lua
index a4c7a3e..d85ef6c 100644
--- a/api.lua
+++ b/api.lua
@@ -162,7 +162,7 @@ function awards.register_trigger(tname, tdef)
end
function def.getDefaultDescription(_)
- local n = self.trigger.target
+ local n = def.trigger.target
return NS(tdef.auto_description[1], tdef.auto_description[2], n, n)
end
@@ -216,7 +216,7 @@ function awards.register_trigger(tname, tdef)
end
function def.getDefaultDescription(_)
- local n = self.trigger.target
+ local n = def.trigger.target
if tmp.key then
local nname = tmp.key
return NS(tdef.auto_description[1],