add unregister messages to gladdy messages
This commit is contained in:
parent
83763aa016
commit
0d9e9735da
10
Gladdy.lua
10
Gladdy.lua
@ -191,6 +191,16 @@ function Gladdy:NewModule(name, priority, defaults)
|
||||
self.messages[message] = func or message
|
||||
end
|
||||
|
||||
module.UnregisterMessage = function(self, message)
|
||||
self.messages[message] = nil
|
||||
end
|
||||
|
||||
module.UnregisterAllMessages = function(self)
|
||||
for msg,_ in pairs(self.messages) do
|
||||
self.messages[msg] = nil
|
||||
end
|
||||
end
|
||||
|
||||
module.GetOptions = function()
|
||||
return nil
|
||||
end
|
||||
|
@ -53,6 +53,7 @@ function Announcements:Initialize()
|
||||
end
|
||||
|
||||
function Announcements:Reset()
|
||||
self:UnregisterAllMessages()
|
||||
self.enemy = {}
|
||||
self.throttled = {}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user