summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/LLNotification.lua
blob: f47730d1cc831101f7777992ac129826a8041eba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- Engage the LLNotificationsListener LLEventAPI

leap = require 'leap'

local LLNotification = {}

function LLNotification.add(name, substitutions)
    leap.send('LLNotifications', {op='requestAdd', name=name, substitutions=substitutions})
end

function LLNotification.requestAdd(name, substitutions)
    return leap.request('LLNotifications', {op='requestAdd', name=name, substitutions=substitutions})['response']
end

return LLNotification