[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.iavalley.cc.ia.us
Sun Jan 21 01:26:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2001-01-21 07:25:58 UTC

Modified files:
     doc/UPDATES1.6 src/cmds.c src/patch.h

Log message:

applied Jason's -host patch (now how am I suppose to get around that +k flag? <g>)

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.46 eggdrop1.6/doc/UPDATES1.6:1.47
--- eggdrop1.6/doc/UPDATES1.6:1.46	Wed Jan 17 17:32:43 2001
+++ eggdrop1.6/doc/UPDATES1.6	Sun Jan 21 01:25:48 2001
@@ -4,6 +4,8 @@
 
 1.6.3
 Found by  Fixed by  What...
+Jason     Jason     fixed it so that +d or +k users cannot remove hosts and
+                    thus circumvent auto-kick or deop
 GregMo    guppy     fixed cmd_binds when called with no argument
           guppy     cleaned up Context and Assert usage in the modules
 
Index: eggdrop1.6/src/cmds.c
diff -u eggdrop1.6/src/cmds.c:1.47 eggdrop1.6/src/cmds.c:1.48
--- eggdrop1.6/src/cmds.c:1.47	Sat Dec 23 00:15:46 2000
+++ eggdrop1.6/src/cmds.c	Sun Jan 21 01:25:48 2001
@@ -3,7 +3,7 @@
  *   commands from a user via dcc
  *   (split in 2, this portion contains no-irc commands)
  * 
- * $Id: cmds.c,v 1.47 2000/12/23 06:15:46 guppy Exp $
+ * $Id: cmds.c,v 1.48 2001/01/21 07:25:48 guppy Exp $
  */
 /* 
  * Copyright (C) 1997  Robey Pointer
@@ -2540,8 +2540,16 @@
     dprintf(idx, "No such user.\n");
     return;
   }
+
+  get_user_flagrec(u, &fr, NULL);
+  /* check to see if user is +d or +k and don't let them remove hosts */
+  if ((u->flags & USER_DEOP) || (u->flags & USER_KICK) || chan_deop(fr) || chan_kick (fr))
+    {
+      dprintf(idx, "You can't remove hosts while having the +d or +k flag.\n");
+      return;
+    }
+  
   if (egg_strcasecmp(handle, dcc[idx].nick)) {
-    get_user_flagrec(u, &fr, NULL);
     if (!(u2->flags & USER_BOT) && !(u->flags & USER_MASTER) &&
 	!chan_master(fr)) {
       dprintf(idx, "You can't remove hostmasks from non-bots.\n");
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.412 eggdrop1.6/src/patch.h:1.413
--- eggdrop1.6/src/patch.h:1.412	Wed Jan 17 17:32:44 2001
+++ eggdrop1.6/src/patch.h	Sun Jan 21 01:25:48 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  * 
- * $Id: patch.h,v 1.412 2001/01/17 23:32:44 guppy Exp $
+ * $Id: patch.h,v 1.413 2001/01/21 07:25:48 guppy Exp $
  */
 /* 
  * Copyright (C) 1997  Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("979773926");		/* current unixtime */
+patch("980061340");		/* current unixtime */
 /*
  *
  *
  */
-patch("tell_binds");
+patch("minushost");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list