Fix incorrect name bug
parent
8b0ce1265a
commit
65da13f4f7
3
init.lua
3
init.lua
|
@ -67,7 +67,8 @@ end)
|
||||||
-- Send achievements
|
-- Send achievements
|
||||||
if awards then
|
if awards then
|
||||||
awards.register_on_unlock(function(name, def)
|
awards.register_on_unlock(function(name, def)
|
||||||
matrix.send(http_api, name .. "has made the achievement [" .. def.title .. "]")
|
local name = def.name or def.title or "N.A."
|
||||||
|
matrix.send(http_api, name .. "has made the achievement [" .. name .. "]")
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue