m_rehash: Require admin privileges for REHASH SSLD.
This change enforces admin privileges for the REHASH SSLD command, as originally intended.
This commit is contained in:
parent
598a7d3b7e
commit
5fd7e2bb8c
1 changed files with 7 additions and 0 deletions
|
@ -89,6 +89,13 @@ rehash_dns(struct Client *source_p)
|
||||||
static void
|
static void
|
||||||
rehash_ssld(struct Client *source_p)
|
rehash_ssld(struct Client *source_p)
|
||||||
{
|
{
|
||||||
|
if (!IsOperAdmin(source_p))
|
||||||
|
{
|
||||||
|
sendto_one(source_p, form_str(ERR_NOPRIVS),
|
||||||
|
me.name, source_p->name, "admin");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s is restarting ssld",
|
sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s is restarting ssld",
|
||||||
get_oper_name(source_p));
|
get_oper_name(source_p));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue