From bd73ea56ba81a3b26a5f6284814a7efb481f1a56 Mon Sep 17 00:00:00 2001 From: JD Horelick Date: Wed, 19 Jan 2011 15:15:50 -0500 Subject: [PATCH] commit 90509b2e2a364471f2461367fd02c11c8ab3c72d Author: Stephen Bennett Date: Fri Dec 31 17:11:50 2010 +0000 Don't allow opers without the override privilege to get +p via the oper_umodes config setting --- src/s_user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/s_user.c b/src/s_user.c index b81fe83..04dcef7 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -1396,6 +1396,8 @@ oper_up(struct Client *source_p, struct oper_conf *oper_p) source_p->snomask &= ~SNO_NCHANGE; if(!IsOperOperwall(source_p)) source_p->umodes &= ~UMODE_OPERWALL; + if (!IsOperOverride(source_p)) + source_p->umodes &= ~UMODE_OVERRIDE; hdata.client = source_p; hdata.oldumodes = old; hdata.oldsnomask = oldsnomask;