File: operk.hack

package info (click to toggle)
ircd 2.10.04-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,248 kB
  • ctags: 2,145
  • sloc: ansic: 26,591; makefile: 666; sh: 418; perl: 18
file content (12 lines) | stat: -rw-r--r-- 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
diff --minimal --new-file --recursive --show-c-function --unified=3 orig/ircd/s_user.c work/ircd/s_user.c
--- orig/ircd/s_user.c	Thu Apr 23 14:22:01 1998
+++ work/ircd/s_user.c	Thu Apr 23 14:40:51 1998
@@ -3375,7 +3380,7 @@ int m_umode(aClient *cptr, aClient *sptr
     det_confs_butmask(sptr, CONF_CLIENT & ~CONF_OPS);
   /* new umode; servers can set it, local users cannot;
    * prevents users from /kick'ing or /mode -o'ing */
-  if (!(setflags & FLAGS_CHSERV) && !IsServer(cptr))
+  if (!(setflags & FLAGS_CHSERV) && !IsServer(cptr) && !IsOper(cptr))
     sptr->flags &= ~FLAGS_CHSERV;
   /*
    * Compare new flags with old flags and send string which