Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-05-06 03:42:36 UTC

Modified files:
     ChangeLog ircd/s_user.c

Log message:

Do not spuriously promote remote users to global operator status.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.623 ircu2.10/ChangeLog:1.624
--- ircu2.10/ChangeLog:1.623    Wed May  4 19:14:41 2005
+++ ircu2.10/ChangeLog  Thu May  5 20:42:24 2005
@@ -1,3 +1,8 @@
+2005-05-05  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/s_user.c (umode_str): Only clear the operator flag when not
+       propagating; never set it.
+
 2005-05-04  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/channel.c (joinbuf_join): Include channel manager flag in
Index: ircu2.10/ircd/s_user.c
diff -u ircu2.10/ircd/s_user.c:1.94 ircu2.10/ircd/s_user.c:1.95
--- ircu2.10/ircd/s_user.c:1.94 Wed Apr 27 05:42:25 2005
+++ ircu2.10/ircd/s_user.c      Thu May  5 20:42:25 2005
@@ -22,7 +22,7 @@
  */
 /** @file
  * @brief Miscellaneous user-related helper functions.
- * @version $Id: s_user.c,v 1.94 2005/04/27 12:42:25 entrope Exp $
+ * @version $Id: s_user.c,v 1.95 2005/05/06 03:42:25 entrope Exp $
  */
 #include "config.h"
 
@@ -1462,9 +1462,7 @@
   int i;
   struct Flags c_flags = cli_flags(cptr);
 
-  if (HasPriv(cptr, PRIV_PROPAGATE))
-    FlagSet(&c_flags, FLAG_OPER);
-  else
+  if (!HasPriv(cptr, PRIV_PROPAGATE))
     FlagClr(&c_flags, FLAG_OPER);
 
   for (i = 0; i < USERMODELIST_SIZE; ++i)
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
Patches@undernet.org
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to