From af92f63d8f14ed23454ada7e0e5af4887be3145c Mon Sep 17 00:00:00 2001 From: Yessiest Date: Thu, 2 Dec 2021 19:35:13 +0400 Subject: [PATCH] Fixed a crash --- plugins/roledefaults/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/roledefaults/init.lua b/plugins/roledefaults/init.lua index 4e7d7c7..447547f 100644 --- a/plugins/roledefaults/init.lua +++ b/plugins/roledefaults/init.lua @@ -17,7 +17,7 @@ local droleadd = command("droleadd",{ }, exec = function(msg,args,opts) table.insert(config.default_roles,args[1].id) - msg:reply("Added role "..role.name.." to default roles list") + msg:reply("Added role "..args[1].name.." to default roles list") end, }) local droledel = command("droledel",{ @@ -33,7 +33,7 @@ local droledel = command("droledel",{ table.remove(config.default_roles,k) end end - msg:reply("Removed role "..role.name.." from default roles list") + msg:reply("Removed role "..args[1].name.." from default roles list") end }) local drolelist = command("drolelist", {