This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Undernet IRC Server Source Code.".

The branch, u2_10_12_branch has been updated
       via  f4e0d720a62f9b9fb6f00f4ac46ffb1a4bf60974 (commit)
      from  2dbbe9916ce1a6aa389661ac7fd3346e64e129a4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f4e0d720a62f9b9fb6f00f4ac46ffb1a4bf60974
Author: Michael Poole <[email protected]>
Date:   Tue May 2 21:57:21 2017 -0400

    ms_opmode(): Only check CONF_UWORLD_OPER if the target is local.

diff --git a/ircd/m_opmode.c b/ircd/m_opmode.c
index df67464..7f3d8ca 100644
--- a/ircd/m_opmode.c
+++ b/ircd/m_opmode.c
@@ -170,10 +170,6 @@ int ms_opmode(struct Client* cptr, struct Client* sptr, 
int parc, char* parv[])
     struct ConfItem *conf;
     struct Client *dptr;
 
-    conf = find_conf_byhost(cli_confs(cptr), cli_name(sptr), CONF_UWORLD);
-    if (!conf || !(conf->flags & CONF_UWORLD_OPER))
-      return send_reply(sptr, ERR_NOPRIVILEGES, parv[1]);
-
     dptr = findNUser(parv[1]);
     if (!dptr)
       return send_reply(sptr, ERR_NOSUCHNICK, parv[1]);
@@ -185,6 +181,10 @@ int ms_opmode(struct Client* cptr, struct Client* sptr, 
int parc, char* parv[])
       return 0;
     }
 
+    conf = find_conf_byhost(cli_confs(cptr), cli_name(sptr), CONF_UWORLD);
+    if (!conf || !(conf->flags & CONF_UWORLD_OPER))
+      return send_reply(sptr, ERR_NOPRIVILEGES, parv[1]);
+
     /* At the moment, we only support +o and -o.  set_user_mode() does
      * not support remote mode setting or setting +o.
      */
-----------------------------------------------------------------------

Summary of changes:
 ircd/m_opmode.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
Undernet IRC Server Source Code.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to