[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sun Dec 9 15:39:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-09 21:38:22 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

Modified files:
     eggdrop.complete.conf doc/html/egg-core.html
     doc/settings/core.settings lib/eggdrop/module.h
     modules/perlscript/perlscript.c modules/server/cmdsserv.c
     src/cmds.c src/modules.c src/tcl.c

Log message:

must-be-owner has been removed as a config setting

---------------------- diff included ----------------------
Index: eggdrop1.7/doc/html/egg-core.html
diff -u eggdrop1.7/doc/html/egg-core.html:1.18 eggdrop1.7/doc/html/egg-core.html:1.19
--- eggdrop1.7/doc/html/egg-core.html:1.18	Sat Oct 20 02:29:09 2001
+++ eggdrop1.7/doc/html/egg-core.html	Sun Dec  9 15:38:11 2001
@@ -1,5 +1,5 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<!-- $Id: egg-core.html,v 1.18 2001/10/20 07:29:09 guppy Exp $ -->
+<!-- $Id: egg-core.html,v 1.19 2001/12/09 21:38:11 guppy Exp $ -->
 
 <html>
   <head>
@@ -714,15 +714,6 @@
           SIGTERM. Otherwise eggdrop will just save its userfile.</p>
 
           <p>Valid settings are 0 and 1.</p>
-        </dd>
-
-        <dt><strong>set must-be-owner 0</strong></dt>
-
-        <dd>
-          <p>If you enable this setting, only permanent owners (owner
-          setting) will be able to use .tcl and .set moreover if you want
-          only let permanent owners use .dump, then set it to 2 Valid
-          settings are 0, 1 and 2</p>
         </dd>
 
         <dt><strong><em>set enable-simul 1</em></strong></dt>
Index: eggdrop1.7/doc/settings/core.settings
diff -u eggdrop1.7/doc/settings/core.settings:1.14 eggdrop1.7/doc/settings/core.settings:1.15
--- eggdrop1.7/doc/settings/core.settings:1.14	Sat Oct 20 02:29:09 2001
+++ eggdrop1.7/doc/settings/core.settings	Sun Dec  9 15:38:11 2001
@@ -442,13 +442,6 @@
     Valid settings are 0 for OFF and 1 ON.
 
 
-set must-be-owner 0
-    If you enable this setting, only permanent owners (owner setting) will be
-    able to use .tcl and .set
-    moreover if you want only let permanent owners use .dump, then set it to 2
-    Valid settings are 0, 1 and 2
-
-
 set enable-simul 1
     Enable this setting, if you want to enable the 'dccsimul' tcl command
     Valid settings are 0 for OFF and 1 ON.
Index: eggdrop1.7/eggdrop.complete.conf
diff -u eggdrop1.7/eggdrop.complete.conf:1.53 eggdrop1.7/eggdrop.complete.conf:1.54
--- eggdrop1.7/eggdrop.complete.conf:1.53	Sat Dec  8 12:17:40 2001
+++ eggdrop1.7/eggdrop.complete.conf	Sun Dec  9 15:38:11 2001
@@ -1,7 +1,7 @@
 #! /path/to/executable/eggdrop
 # ^- set that to the directory eggdrop is in i.e. "#! /home/lamest/egg/eggdrop"
 #
-# $Id: eggdrop.complete.conf,v 1.53 2001/12/08 18:17:40 guppy Exp $
+# $Id: eggdrop.complete.conf,v 1.54 2001/12/09 21:38:11 guppy Exp $
 #
 # This config file includes all possible options you can
 # use to configure your bot properly.
@@ -341,11 +341,6 @@
 # (In previous versions, this was enabled by default in eggdrop.h)
 unbind dcc n tcl *dcc:tcl
 unbind dcc n set *dcc:set
-
-# [0/1/2] only let permanent owners use .tcl/.set if bound? then set it to 1
-# moreover only let permanent owners use .dump? then set it to 2
-# (the people must set the $owner variable)
-set must-be-owner 1
 
 # comment the following line out to add the 'simul' command (owners can
 # manipulate other people on the party line).
Index: eggdrop1.7/lib/eggdrop/module.h
diff -u eggdrop1.7/lib/eggdrop/module.h:1.2 eggdrop1.7/lib/eggdrop/module.h:1.3
--- eggdrop1.7/lib/eggdrop/module.h:1.2	Mon Oct 29 17:01:32 2001
+++ eggdrop1.7/lib/eggdrop/module.h	Sun Dec  9 15:38:12 2001
@@ -1,7 +1,7 @@
 /*
  * module.h
  *
- * $Id: module.h,v 1.2 2001/10/29 23:01:32 ite Exp $
+ * $Id: module.h,v 1.3 2001/12/09 21:38:12 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -391,7 +391,7 @@
 /* 256 - 259 */
 /* #define strncasecmp ((int (*)(const char *, const char *, size_t))global[256]) */
 #define is_file ((int (*)(const char *))global[257])
-#define must_be_owner (*(int *)(global[258]))
+/* #define must_be_owner (*(int *)(global[258])) */
 #define tandbot (*(tand_t **)(global[259]))
 /* 260 - 263 */
 #define party (*(party_t **)(global[260]))
Index: eggdrop1.7/modules/perlscript/perlscript.c
diff -u eggdrop1.7/modules/perlscript/perlscript.c:1.3 eggdrop1.7/modules/perlscript/perlscript.c:1.4
--- eggdrop1.7/modules/perlscript/perlscript.c:1.3	Mon Nov 12 22:51:51 2001
+++ eggdrop1.7/modules/perlscript/perlscript.c	Sun Dec  9 15:38:12 2001
@@ -363,7 +363,7 @@
 	char *msg;
 	int len;
 
-	if (must_be_owner && !(isowner(dcc[idx].nick))) return(0);
+	if (!isowner(dcc[idx].nick)) return(0);
 
 	result = eval_pv(text, FALSE);
 	if (SvTRUE(ERRSV)) {
Index: eggdrop1.7/modules/server/cmdsserv.c
diff -u eggdrop1.7/modules/server/cmdsserv.c:1.1 eggdrop1.7/modules/server/cmdsserv.c:1.2
--- eggdrop1.7/modules/server/cmdsserv.c:1.1	Sat Oct 27 11:34:52 2001
+++ eggdrop1.7/modules/server/cmdsserv.c	Sun Dec  9 15:38:12 2001
@@ -2,7 +2,7 @@
  * cmdsserv.c -- part of server.mod
  *   handles commands from a user via dcc that cause server interaction
  *
- * $Id: cmdsserv.c,v 1.1 2001/10/27 16:34:52 ite Exp $
+ * $Id: cmdsserv.c,v 1.2 2001/12/09 21:38:12 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -49,10 +49,6 @@
 
 static void cmd_dump(struct userrec *u, int idx, char *par)
 {
-  if (!(isowner(dcc[idx].nick)) && (must_be_owner == 2)) {
-    dprintf(idx, _("What?  You need .help\n"));
-    return;
-  }
   if (!par[0]) {
     dprintf(idx, "Usage: dump <server stuff>\n");
     return;
Index: eggdrop1.7/src/cmds.c
diff -u eggdrop1.7/src/cmds.c:1.79 eggdrop1.7/src/cmds.c:1.80
--- eggdrop1.7/src/cmds.c:1.79	Sat Dec  8 13:17:44 2001
+++ eggdrop1.7/src/cmds.c	Sun Dec  9 15:38:12 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.79 2001/12/08 19:17:44 ite Exp $
+ * $Id: cmds.c,v 1.80 2001/12/09 21:38:12 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -33,8 +33,8 @@
 extern struct dcc_t	*dcc;
 extern struct userrec	*userlist;
 extern int		 dcc_total, remote_boots, backgrd, make_userfile,
-			 do_restart, conmask, require_p, must_be_owner,
-			 strict_host, term_z, con_chan;
+			 do_restart, conmask, require_p, strict_host,
+			 term_z, con_chan;
 extern unsigned long	 otraffic_irc, otraffic_irc_today,
 			 itraffic_irc, itraffic_irc_today,
 			 otraffic_bn, otraffic_bn_today,
@@ -2202,7 +2202,7 @@
 {
   int code;
 
-  if (!(isowner(dcc[idx].nick)) && (must_be_owner)) {
+  if (!isowner(dcc[idx].nick)) {
     dprintf(idx, _("What?  You need .help\n"));
     return;
   }
@@ -2221,7 +2221,7 @@
   int code;
   char s[512];
 
-  if (!(isowner(dcc[idx].nick)) && (must_be_owner)) {
+  if (!isowner(dcc[idx].nick)) {
     dprintf(idx, _("What?  You need .help\n"));
     return;
   }
@@ -2254,7 +2254,7 @@
 {
   const char *p;
 
-     if (!(isowner(dcc[idx].nick)) && (must_be_owner)) {
+     if (!isowner(dcc[idx].nick)) {
          dprintf(idx, _("What?  You need .help\n"));
          return;
      }
@@ -2276,7 +2276,7 @@
 {
   char *p;
 
-     if (!(isowner(dcc[idx].nick)) && (must_be_owner)) {
+     if (!isowner(dcc[idx].nick)) {
          dprintf(idx, _("What?  You need .help\n"));
          return;
      }
Index: eggdrop1.7/src/modules.c
diff -u eggdrop1.7/src/modules.c:1.86 eggdrop1.7/src/modules.c:1.87
--- eggdrop1.7/src/modules.c:1.86	Sat Dec  8 21:55:58 2001
+++ eggdrop1.7/src/modules.c	Sun Dec  9 15:38:12 2001
@@ -4,7 +4,7 @@
  * 
  * by Darrin Smith (beldin at light.iinet.net.au)
  * 
- * $Id: modules.c,v 1.86 2001/12/09 03:55:58 stdarg Exp $
+ * $Id: modules.c,v 1.87 2001/12/09 21:38:12 guppy Exp $
  */
 /* 
  * Copyright (C) 1997  Robey Pointer
@@ -47,7 +47,7 @@
 			 userfile[], ver[], notify_new[], helpdir[],
 			 version[], quit_msg[];
 extern int	 noshare, dcc_total, egg_numver, userfile_perm,
-			 ignore_time, must_be_owner,
+			 ignore_time,
 			 debug_output, gban_total, make_userfile,
 			 gexempt_total, ginvite_total, default_flags,
 			 require_p, max_dcc, share_greet, password_timeout,
@@ -468,7 +468,7 @@
   /* 256 - 259 */
   (Function) 0,			/* strncasecmp				*/
   (Function) is_file,
-  (Function) & must_be_owner,	/* int					*/
+  (Function) 0,
   (Function) & tandbot,		/* tand_t *				*/
   /* 260 - 263 */
   (Function) & party,		/* party_t *				*/
Index: eggdrop1.7/src/tcl.c
diff -u eggdrop1.7/src/tcl.c:1.56 eggdrop1.7/src/tcl.c:1.57
--- eggdrop1.7/src/tcl.c:1.56	Sat Dec  8 21:55:58 2001
+++ eggdrop1.7/src/tcl.c	Sun Dec  9 15:38:12 2001
@@ -4,7 +4,7 @@
  *   Tcl initialization
  *   getting and setting Tcl/eggdrop variables
  *
- * $Id: tcl.c,v 1.56 2001/12/09 03:55:58 stdarg Exp $
+ * $Id: tcl.c,v 1.57 2001/12/09 21:38:12 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -74,7 +74,6 @@
 int	    force_expire = 0;		/* Rufus */
 int	    remote_boots = 2;
 int	    allow_dk_cmds = 1;
-int	    must_be_owner = 1;
 int	    max_dcc = 20;		/* needs at least 4 or 5 just to
 					   get started. 20 should be enough   */
 int	    par_telnet_flood = 1;       /* trigger telnet flood for +f
@@ -357,7 +356,6 @@
   {"share-unlinks",		&share_unlinks,		0},
   {"allow-dk-cmds",		&allow_dk_cmds,		0},
   {"resolve-timeout",		&resolve_timeout,	0},
-  {"must-be-owner",		&must_be_owner,		1},
   {"paranoid-telnet-flood",	&par_telnet_flood,	0},
   {"use-exempts",		&use_exempts,		0},			/* Jason/drummer */
   {"use-invites",		&use_invites,		0},			/* Jason/drummer */
----------------------- End of diff -----------------------



More information about the Changes mailing list