From 41088b6f65674d48edfe4d5667a03d1389617d34 Mon Sep 17 00:00:00 2001 From: Lukas Mai Date: Fri, 8 Jan 2016 19:37:29 +0100 Subject: [PATCH] make /knockout use /unban to remove bans /knockout uses /ban to set bans but calls ban_remove() directly to remove them. This commit makes it use /unban instead. This allows scripts that hook ban/unban to work automatically with /knockout. --- src/irc/core/irc-commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c index d5988f97..6baf2f6d 100644 --- a/src/irc/core/irc-commands.c +++ b/src/irc/core/irc-commands.c @@ -749,7 +749,7 @@ static void knockout_timeout_server(IRC_SERVER_REC *server) next = tmp->next; if (rec->unban_time <= now) { /* timeout, unban. */ - ban_remove(rec->channel, rec->ban); + signal_emit("command unban", 3, rec->ban, server, rec->channel); knockout_destroy(server, rec); } }