]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
commit 90509b2e2a364471f2461367fd02c11c8ab3c72d
authorJD Horelick <redacted>
Wed, 19 Jan 2011 20:15:50 +0000 (15:15 -0500)
committerJD Horelick <redacted>
Wed, 19 Jan 2011 20:15:50 +0000 (15:15 -0500)
Author: Stephen Bennett <redacted>
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

index b81fe83c65241f5b300e7dce68371c9b38b43e66..04dcef716c0f4b1da87bb242698b47099660b14e 100644 (file)
@@ -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;