Repair fast/better undline (169:d8aa0d182c9f).
This commit is contained in:
parent
5f7a6a3db2
commit
37f6cc05d8
1 changed files with 7 additions and 8 deletions
|
@ -416,7 +416,7 @@ apply_undline(struct Client *source_p, const char *cidr)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(irccmp(found_cidr, cidr) == 0)
|
if(irccmp(found_cidr, aconf->host) == 0)
|
||||||
{
|
{
|
||||||
pairme++;
|
pairme++;
|
||||||
}
|
}
|
||||||
|
@ -441,8 +441,8 @@ apply_undline(struct Client *source_p, const char *cidr)
|
||||||
}
|
}
|
||||||
else if(!pairme)
|
else if(!pairme)
|
||||||
{
|
{
|
||||||
sendto_one(source_p, ":%s NOTICE %s :No D-Line for %s",
|
sendto_one_notice(source_p, ":Cannot find D-Line for %s in file",
|
||||||
me.name, source_p->name, cidr);
|
aconf->host);
|
||||||
|
|
||||||
if(temppath != NULL)
|
if(temppath != NULL)
|
||||||
(void) unlink(temppath);
|
(void) unlink(temppath);
|
||||||
|
@ -455,13 +455,12 @@ apply_undline(struct Client *source_p, const char *cidr)
|
||||||
sendto_one_notice(source_p, ":Couldn't rename temp file, aborted");
|
sendto_one_notice(source_p, ":Couldn't rename temp file, aborted");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
rehash_bans(0);
|
|
||||||
|
|
||||||
|
sendto_one(source_p, ":%s NOTICE %s :D-Line for [%s] is removed", me.name, source_p->name, aconf->host);
|
||||||
sendto_one(source_p, ":%s NOTICE %s :D-Line for [%s] is removed", me.name, source_p->name, cidr);
|
|
||||||
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
|
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
|
||||||
"%s has removed the D-Line for: [%s]", get_oper_name(source_p), cidr);
|
"%s has removed the D-Line for: [%s]", get_oper_name(source_p), aconf->host);
|
||||||
ilog(L_KLINE, "UD %s %s", get_oper_name(source_p), cidr);
|
ilog(L_KLINE, "UD %s %s", get_oper_name(source_p), aconf->host);
|
||||||
|
delete_one_address_conf(aconf->host, aconf);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue