Remove reject entries on unkline/ungline/unxline.

When a user is rejected, remember the hash value of the
ban mask (for klines/glines, hash value of the user part
XOR hash value of the host part) with the rejected IP;
if the kline/gline/xline is removed, remove rejects with
the same hash value also.  Note that this does not happen
for expiries; this is deliberate.
Rejects for no auth{} or dnsbl put a hash value of 0;
they cannot be removed selectively.
This commit is contained in:
Jilles Tjoelker 2007-12-08 21:54:51 +01:00
parent 6bfe3faec0
commit 35f6f850b6
8 changed files with 59 additions and 11 deletions

View file

@ -62,7 +62,7 @@ mo_unreject(struct Client *client_p, struct Client *source_p, int parc, const ch
return 0;
}
if(remove_reject(parv[1]))
if(remove_reject_ip(parv[1]))
sendto_one_notice(source_p, ":Removed reject for %s", parv[1]);
else
sendto_one_notice(source_p, ":Unable to remove reject for %s", parv[1]);