[eggheads-patches] serverop.patch

Axel Franke eule at berlin.snafu.de
Sat Oct 23 18:05:02 CST 1999


added check for -stopnethack
(chan_deop(victim) || (glob_deop(victim) && !chan_op(victim)))
and removed influence +autoop up +stopnethack...

Greeting Eule

-------------- next part --------------
diff -ur eggdrop1.3/doc/UPDATES1.3 eggneu/doc/UPDATES1.3
--- eggdrop1.3/doc/UPDATES1.3	Sat Oct 23 23:14:44 1999
+++ eggneu/doc/UPDATES1.3	Sat Oct 23 23:53:32 1999
@@ -4,6 +4,7 @@
 
 1.3.29
 Foundby   Fixedby   What....
+	  Eule      Serverop-stuff
 SuperS	  arthur2   Fixed some osf warnings.
 	  arthur2   tcldcc.c strncpy length mismatch.
 toot	  Eule	    u->lastactive = now; in refresh_ban_kick
diff -ur eggdrop1.3/src/mod/irc.mod/mode.c eggneu/src/mod/irc.mod/mode.c
--- eggdrop1.3/src/mod/irc.mod/mode.c	Sat Oct 23 23:14:47 1999
+++ eggneu/src/mod/irc.mod/mode.c	Sat Oct 23 23:47:34 1999
@@ -384,27 +384,24 @@
       add_mode(chan, '-', 'o', who);
   } else if (reversing && !match_my_nick(who))
     add_mode(chan, '-', 'o', who);
-  if ((chan_wasoptest(victim) || glob_wasoptest(victim) ||
-      chan_autoop(victim) || glob_autoop(victim) ||
-      channel_autoop(chan) ||	/* drummer */
-      channel_wasoptest(chan)) && !match_my_nick(who)) {
-    /* 1.3.21 behavior: wasop test needed for stopnethack */
-    if (!nick[0] && !chan_wasop(m) &&
-	me_op(chan) && channel_stopnethack(chan)) {
-      add_mode(chan, '-', 'o', who);
-      m->flags |= FAKEOP;
-    } else {
-      m->flags &= ~FAKEOP;
+  if (!nick[0] && me_op(chan) && !match_my_nick(who)) {
+    if (channel_stopnethack(chan) &&
+    !(chan_op(victim) || (glob_op(victim) && !chan_deop(victim)))) {
+      if (chan_wasoptest(victim) || glob_wasoptest(victim) ||
+      channel_wasoptest(chan)) {
+        if (!chan_wasop(m)) {
+          add_mode(chan, '-', 'o', who);
+          m->flags |= FAKEOP;
+        }
+      } else {
+        add_mode(chan, '-', 'o', who);
+        m->flags |= FAKEOP;
+      }
     }
-  } else {			/* 1.3.20 behavior: wasop test unwanted
-				 * for stopnethack */
-    if (!nick[0] &&
-	!(chan_op(victim) || (glob_op(victim) && !chan_deop(victim))) &&
-	me_op(chan) && channel_stopnethack(chan) && !match_my_nick(who)) {
+    if (!channel_stopnethack(chan) &&
+    (chan_deop(victim) || (glob_deop(victim) && !chan_op(victim)))) {
       add_mode(chan, '-', 'o', who);
       m->flags |= FAKEOP;
-    } else {
-      m->flags &= ~FAKEOP;
     }
   }
   m->flags &= ~WASOP;


More information about the Patches mailing list