m_unreject.c fixed
This commit is contained in:
parent
ae42901c54
commit
d1cf8afebd
|
@ -49,8 +49,7 @@ DECLARE_MODULE_AV1(unreject, NULL, NULL, unreject_clist, NULL, NULL, "$Revision:
|
||||||
static int
|
static int
|
||||||
mo_unreject(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
|
mo_unreject(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
|
||||||
{
|
{
|
||||||
if(ConfigFileEntry.reject_after_count == 0 || ConfigFileEntry.reject_ban_time == 0 ||
|
if(ConfigFileEntry.reject_after_count == 0 || ConfigFileEntry.reject_duration == 0)
|
||||||
ConfigFileEntry.reject_duration == 0)
|
|
||||||
{
|
{
|
||||||
sendto_one_notice(source_p, ":Reject cache is disabled");
|
sendto_one_notice(source_p, ":Reject cache is disabled");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -62,10 +61,9 @@ mo_unreject(struct Client *client_p, struct Client *source_p, int parc, const ch
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(remove_reject_ip(parv[1]))
|
if(remove_reject(parv[1]))
|
||||||
sendto_one_notice(source_p, ":Removed reject for %s", parv[1]);
|
sendto_one_notice(source_p, ":Removed reject for %s", parv[1]);
|
||||||
else
|
else
|
||||||
sendto_one_notice(source_p, ":Unable to remove reject for %s", parv[1]);
|
sendto_one_notice(source_p, ":Unable to remove reject for %s", parv[1]);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue