diff --git a/script/main.lua b/script/main.lua index 0d734a7..6c29886 100644 --- a/script/main.lua +++ b/script/main.lua @@ -737,7 +737,19 @@ function (con, args) end c.unban(chan, string.lower(args.character)) - u.send(con, "SYS", {channel=args.channel, message=args.character.." has been removed from the channel ban list."}) + + local modList = c.getModList(chan) + + for index, value in ipairs(modList) do + local found, connection = u.getConnection(string.lower(value)) + + if found ~= true then + u.send(connection, "SYS", { + channel = args.channel + message = args.character.." has been removed from the channel ban list." + }) + end + end return const.FERR_OK end