From 46057bf1cd5c4ed3e0ed00f9152151e4b747c143 Mon Sep 17 00:00:00 2001 From: Maw-Fox Date: Thu, 12 May 2016 18:29:47 -0600 Subject: [PATCH 1/2] Initial commit. --- script/main.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/script/main.lua b/script/main.lua index 0d734a7..f041986 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, chan, "SYS", { + channel = args.channel + message = args.character.." has been removed from the channel ban list." + }) + end + end return const.FERR_OK end From ca32f39fdca9e89f413f64b30823cb86ac276276 Mon Sep 17 00:00:00 2001 From: Maw-Fox Date: Thu, 12 May 2016 18:32:59 -0600 Subject: [PATCH 2/2] Fix. --- script/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/main.lua b/script/main.lua index f041986..6c29886 100644 --- a/script/main.lua +++ b/script/main.lua @@ -744,7 +744,7 @@ function (con, args) local found, connection = u.getConnection(string.lower(value)) if found ~= true then - u.send(connection, chan, "SYS", { + u.send(connection, "SYS", { channel = args.channel message = args.character.." has been removed from the channel ban list." })