[eggheads-patches] recheck.patch

Axel Franke eule at berlin.snafu.de
Fri Oct 1 15:09:46 CST 1999


-------------- next part --------------
diff -bruN eggdrop1.3/doc/UPDATES1.3 eggneu/doc/UPDATES1.3
--- eggdrop1.3/doc/UPDATES1.3	Fri Oct  1 17:16:53 1999
+++ eggneu/doc/UPDATES1.3	Fri Oct  1 17:19:12 1999
@@ -4,6 +4,7 @@
 
 1.3.29
 Foundby   Fixedby   What....
+          Eule      fixed recheck_channel in got_op
           dw        moved 'msg already queued. skipping...' to a debug
                     message and added what it skips for debugging reasons.
 Ben	  Fabian    minor doc changes to eggdrop.conf.dist
diff -bruN eggdrop1.3/src/mod/irc.mod/irc.c eggneu/src/mod/irc.mod/irc.c
--- eggdrop1.3/src/mod/irc.mod/irc.c	Fri Oct  1 17:16:56 1999
+++ eggneu/src/mod/irc.mod/irc.c	Fri Oct  1 17:19:38 1999
@@ -657,7 +657,7 @@
       } else
 	m = m->next;
     }
-    if (channel_active(chan) && (chan->idle_kick)) {
+    if (channel_active(chan) && me_op(chan) && (chan->idle_kick)) {
       m = chan->channel.member;
       while (m->nick[0]) {
 	if ((now - m->last) >= (chan->idle_kick * 60) &&
diff -bruN eggdrop1.3/src/mod/irc.mod/mode.c eggneu/src/mod/irc.mod/mode.c
--- eggdrop1.3/src/mod/irc.mod/mode.c	Fri Oct  1 17:16:56 1999
+++ eggneu/src/mod/irc.mod/mode.c	Fri Oct  1 18:08:12 1999
@@ -345,6 +345,9 @@
     dprintf(DP_MODE, "WHO %s\n", who);
     return;
   }
+  /* Did *I* just get opped? */
+  if (!me_op(chan) && match_my_nick(who))
+    check_chan = 1;
   /* flags need to be set correctly right from the beginning now, so that
    * add_mode() doesn't get irritated  (Fabian) */
   m->flags |= CHANOP;
@@ -356,11 +359,8 @@
   } else
     u = m->user;
   get_user_flagrec(u, &victim, chan->name);
-  /* Did *I* just get opped? */
-  if (!me_op(chan) && match_my_nick(who))
-    check_chan = 1;
   /* I'm opped, and the opper isn't me */
-  else if (me_op(chan) && !match_my_nick(who) &&
+  if (me_op(chan) && !match_my_nick(who) &&
     /* and it isn't a server op */
 	   nick[0]) {
     /* Channis is +bitch, and the opper isn't a global master or a bot */


More information about the Patches mailing list