Fixed persistence
This commit is contained in:
parent
cbd70316b9
commit
39907082cb
|
@ -1,7 +1,7 @@
|
||||||
local plugin_class = import("classes.plugin")
|
local plugin_class = import("classes.plugin")
|
||||||
local command = import("classes.command")
|
local command = import("classes.command")
|
||||||
local plugin = plugin_class("roledefaults")
|
local plugin = plugin_class("roledefaults")
|
||||||
config.default_roles = {}
|
config.default_roles = config.default_roles or {}
|
||||||
client:on("memeberJoin",function(member)
|
client:on("memeberJoin",function(member)
|
||||||
for k,v in pairs(config.default_roles) do
|
for k,v in pairs(config.default_roles) do
|
||||||
member:addRole(v)
|
member:addRole(v)
|
||||||
|
|
Loading…
Reference in New Issue