]> jfr.im git - irc/freenode/ircd-seven.git/commitdiff
Fix challenge oper for low-rank staff
authorGareth Pulham <redacted>
Sun, 16 Oct 2016 23:55:14 +0000 (00:55 +0100)
committerEd Kellett <redacted>
Tue, 18 Oct 2016 00:10:23 +0000 (01:10 +0100)
Bring testing for pre-existing oper stats in line with the m_oper module

modules/m_challenge.c

index 462720c3cd206affc2eec494321d6f6d1265588a..386c33f57be39368ce70a42680948734781c65fd 100644 (file)
@@ -114,7 +114,7 @@ m_challenge(struct Client *client_p, struct Client *source_p, int parc, const ch
        int len = 0;
 
        /* if theyre an oper, reprint oper motd and ignore */
-       if(IsOper(source_p))
+       if(IsAnyOper(source_p))
        {
                sendto_one(source_p, form_str(RPL_YOUREOPER), me.name, source_p->name);
                send_oper_motd(source_p);