diff options
author | Lukas Mai <l.mai@web.de> | 2016-01-08 19:37:29 +0100 |
---|---|---|
committer | Lukas Mai <l.mai@web.de> | 2016-01-08 19:37:29 +0100 |
commit | 41088b6f65674d48edfe4d5667a03d1389617d34 (patch) | |
tree | cf336749338081cb7e36597ec9da791fc6879083 | |
parent | 83a7ce2e00f418560ad2566c9b06ddf523148a91 (diff) | |
download | irssi-41088b6f65674d48edfe4d5667a03d1389617d34.zip |
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.
-rw-r--r-- | src/irc/core/irc-commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |