mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 04:34:06 +00:00
Use full caller as key to avoid conflicts
This commit is contained in:
parent
17b2752b38
commit
6284d83ed7
1 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ function API.new(app)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Rojo:Notify(msg: string, timeout: number?)
|
function Rojo:Notify(msg: string, timeout: number?)
|
||||||
local source = Rojo:_getCaller()
|
local source = Rojo:_getCallerFull()
|
||||||
|
|
||||||
if Rojo._notifRateLimit[source] == nil then
|
if Rojo._notifRateLimit[source] == nil then
|
||||||
Rojo._notifRateLimit[source] = 0
|
Rojo._notifRateLimit[source] = 0
|
||||||
|
|
@ -123,7 +123,7 @@ function API.new(app)
|
||||||
Rojo._notifRateLimit[source] -= 1
|
Rojo._notifRateLimit[source] -= 1
|
||||||
end)
|
end)
|
||||||
|
|
||||||
app:addThirdPartyNotification(source, msg, timeout)
|
app:addThirdPartyNotification(Rojo:_getCaller(), msg, timeout)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue