mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-05 21:30:29 +00:00
Fix gline/kline with cloaked hostnames
This commit is contained in:
parent
93e36555e3
commit
ea7ad914c8
@ -341,7 +341,7 @@ Lists_CheckReason(struct list_head *h, CLIENT *Client, char *reason, size_t len)
|
|||||||
|
|
||||||
while (e) {
|
while (e) {
|
||||||
next = e->next;
|
next = e->next;
|
||||||
if (MatchCaseInsensitive(e->mask, Client_MaskCloaked(Client))) {
|
if (MatchCaseInsensitive(e->mask, Client_MaskCloaked(Client)) | MatchCaseInsensitive(e->mask, Client_Mask(Client))) {
|
||||||
if (len && e->reason)
|
if (len && e->reason)
|
||||||
strlcpy(reason, e->reason, len);
|
strlcpy(reason, e->reason, len);
|
||||||
if (e->onlyonce) {
|
if (e->onlyonce) {
|
||||||
|
Loading…
Reference in New Issue
Block a user