mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 01:22:26 +02:00
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.
This commit is contained in:
parent
83a7ce2e00
commit
41088b6f65
1 changed files with 1 additions and 1 deletions
|
|
@ -749,7 +749,7 @@ static void knockout_timeout_server(IRC_SERVER_REC *server)
|
||||||
next = tmp->next;
|
next = tmp->next;
|
||||||
if (rec->unban_time <= now) {
|
if (rec->unban_time <= now) {
|
||||||
/* timeout, unban. */
|
/* timeout, unban. */
|
||||||
ban_remove(rec->channel, rec->ban);
|
signal_emit("command unban", 3, rec->ban, server, rec->channel);
|
||||||
knockout_destroy(server, rec);
|
knockout_destroy(server, rec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue