From fbd3e77eac3889b95855b65834586a4da2a0073e Mon Sep 17 00:00:00 2001 From: Keith Buck Date: Sun, 4 Dec 2016 22:03:34 +0000 Subject: [PATCH] m_rehash: Require admin privileges for REHASH SSLD. This change enforces admin privileges for the REHASH SSLD command, as originally intended. --- modules/m_rehash.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/m_rehash.c b/modules/m_rehash.c index 084c0be1..ac7e2241 100644 --- a/modules/m_rehash.c +++ b/modules/m_rehash.c @@ -89,6 +89,13 @@ rehash_dns(struct Client *source_p) static void 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", get_oper_name(source_p));