1
0
Fork 0

safe calls to db callbacks

This commit is contained in:
pigmonkey 2011-06-04 03:13:27 -04:00
parent ba42823d63
commit cd8f501570

View file

@ -71,7 +71,11 @@ end
function core:OnEnable()
self.db:RegisterDefaults(defaults)
for mod,fn in pairs(databaseCallback) do fn(db.modules[mod]) end
for mod,fn in pairs(databaseCallback) do
xpcall(function()
fn(db.modules[mod])
end, geterrorhandler())
end
end
function core:OnDisable()