[cvslog] [CVS] Module eggdrop1.8: Change committed

cvs at eggheads.org cvs at eggheads.org
Mon Oct 11 02:46:20 CST 2010


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.8
Commit time: 2010-10-11 08:46:20 UTC
Committer  : Rumen Stoyanov <pseudo at egg6.net>

Modified files:
     THANKS doc/Changes1.8 src/mod/channels.mod/cmdschan.c

Log message:

Altered the permission check on the pls/mns ban/exempt/invite commands from USER_MASTER to USER_OP to allow global operators to set global bans.

---------------------- diff included ----------------------
Index: eggdrop1.8/THANKS
diff -u eggdrop1.8/THANKS:1.3 eggdrop1.8/THANKS:1.4
--- eggdrop1.8/THANKS:1.3	Tue Oct  5 11:38:24 2010
+++ eggdrop1.8/THANKS	Mon Oct 11 02:46:09 2010
@@ -1,4 +1,4 @@
-$Id: THANKS,v 1.3 2010/10/05 17:38:24 pseudo Exp $:
+$Id: THANKS,v 1.4 2010/10/11 08:46:09 pseudo Exp $:
 
 Eggdrop Developers and Contributors
 Last revised: June 16, 2010
@@ -425,6 +425,7 @@
 piglet
 pinchaser
 Pixelz         Rickard Utgren                  rutgren at gmail.com
+pjb                                            pjb at decafgeek.org
 plan9
 Plex
 plof
Index: eggdrop1.8/doc/Changes1.8
diff -u eggdrop1.8/doc/Changes1.8:1.17 eggdrop1.8/doc/Changes1.8:1.18
--- eggdrop1.8/doc/Changes1.8:1.17	Sun Oct 10 15:24:43 2010
+++ eggdrop1.8/doc/Changes1.8	Mon Oct 11 02:46:10 2010
@@ -1,4 +1,4 @@
-$Id: Changes1.8,v 1.17 2010/10/10 21:24:43 pseudo Exp $
+$Id: Changes1.8,v 1.18 2010/10/11 08:46:10 pseudo Exp $
 
 Eggdrop Changes (since version 1.8.0)
 
@@ -6,6 +6,10 @@
 
 1.8.0 (CVS):
 
+  - Altered the permission check on the pls/mns ban/exempt/invite commands
+    from USER_MASTER to USER_OP to allow global operators to set global bans.
+    Patch by: pjb
+
   - Removed the unrecognized options warning when configuring modules.
   - Modified -v output and .status display configure options.
     Patch by: pseudo
Index: eggdrop1.8/src/mod/channels.mod/cmdschan.c
diff -u eggdrop1.8/src/mod/channels.mod/cmdschan.c:1.2 eggdrop1.8/src/mod/channels.mod/cmdschan.c:1.3
--- eggdrop1.8/src/mod/channels.mod/cmdschan.c:1.2	Thu Aug  5 12:12:05 2010
+++ eggdrop1.8/src/mod/channels.mod/cmdschan.c	Mon Oct 11 02:46:10 2010
@@ -2,7 +2,7 @@
  * cmdschan.c -- part of channels.mod
  *   commands from a user via dcc that cause server interaction
  *
- * $Id: cmdschan.c,v 1.2 2010/08/05 18:12:05 pseudo Exp $
+ * $Id: cmdschan.c,v 1.3 2010/10/11 08:46:10 pseudo Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -45,7 +45,7 @@
       chname = newsplit(&par);
     else
       chname = 0;
-    if (chname || !(u->flags & USER_MASTER)) {
+    if (chname || !(u->flags & USER_OP)) {
       if (!chname)
         chname = dcc[idx].u.chat->con_chan;
       get_user_flagrec(u, &user, chname);
@@ -181,7 +181,7 @@
       chname = newsplit(&par);
     else
       chname = 0;
-    if (chname || !(u->flags & USER_MASTER)) {
+    if (chname || !(u->flags & USER_OP)) {
       if (!chname)
         chname = dcc[idx].u.chat->con_chan;
       get_user_flagrec(u, &user, chname);
@@ -303,7 +303,7 @@
       chname = newsplit(&par);
     else
       chname = 0;
-    if (chname || !(u->flags & USER_MASTER)) {
+    if (chname || !(u->flags & USER_OP)) {
       if (!chname)
         chname = dcc[idx].u.chat->con_chan;
       get_user_flagrec(u, &user, chname);
@@ -424,7 +424,7 @@
     chname = dcc[idx].u.chat->con_chan;
     console = 1;
   }
-  if (chname || !(u->flags & USER_MASTER)) {
+  if (chname || !(u->flags & USER_OP)) {
     if (!chname)
       chname = dcc[idx].u.chat->con_chan;
     get_user_flagrec(u, &user, chname);
@@ -437,7 +437,7 @@
   }
   strncpyz(s, ban, sizeof s);
   if (console) {
-    i = u_delban(NULL, s, (u->flags & USER_MASTER));
+    i = u_delban(NULL, s, (u->flags & USER_OP));
     if (i > 0) {
       if (lastdeletedmask)
         mask = lastdeletedmask;
@@ -536,7 +536,7 @@
     chname = dcc[idx].u.chat->con_chan;
     console = 1;
   }
-  if (chname || !(u->flags & USER_MASTER)) {
+  if (chname || !(u->flags & USER_OP)) {
     if (!chname)
       chname = dcc[idx].u.chat->con_chan;
     get_user_flagrec(u, &user, chname);
@@ -548,7 +548,7 @@
   }
   strncpyz(s, exempt, sizeof s);
   if (console) {
-    i = u_delexempt(NULL, s, (u->flags & USER_MASTER));
+    i = u_delexempt(NULL, s, (u->flags & USER_OP));
     if (i > 0) {
       if (lastdeletedmask)
         mask = lastdeletedmask;
@@ -648,7 +648,7 @@
     chname = dcc[idx].u.chat->con_chan;
     console = 1;
   }
-  if (chname || !(u->flags & USER_MASTER)) {
+  if (chname || !(u->flags & USER_OP)) {
     if (!chname)
       chname = dcc[idx].u.chat->con_chan;
     get_user_flagrec(u, &user, chname);
@@ -660,7 +660,7 @@
   }
   strncpyz(s, invite, sizeof s);
   if (console) {
-    i = u_delinvite(NULL, s, (u->flags & USER_MASTER));
+    i = u_delinvite(NULL, s, (u->flags & USER_OP));
     if (i > 0) {
       if (lastdeletedmask)
         mask = lastdeletedmask;
@@ -950,7 +950,7 @@
     }
     if (!chname[0]) {
       i = u_setsticky_exempt(NULL, s,
-                             (dcc[idx].user->flags & USER_MASTER) ? yn : -1);
+                             (dcc[idx].user->flags & USER_OP) ? yn : -1);
       if (i > 0) {
         putlog(LOG_CMDS, "*", "#%s# %sstick exempt %s",
                dcc[idx].nick, yn ? "" : "un", s);
@@ -988,7 +988,7 @@
     }
     if (!chname[0]) {
       i = u_setsticky_invite(NULL, s,
-                             (dcc[idx].user->flags & USER_MASTER) ? yn : -1);
+                             (dcc[idx].user->flags & USER_OP) ? yn : -1);
       if (i > 0) {
         putlog(LOG_CMDS, "*", "#%s# %sstick invite %s",
                dcc[idx].nick, yn ? "" : "un", s);
@@ -1020,7 +1020,7 @@
   }
   if (!chname[0]) {
     i = u_setsticky_ban(NULL, s,
-                        (dcc[idx].user->flags & USER_MASTER) ? yn : -1);
+                        (dcc[idx].user->flags & USER_OP) ? yn : -1);
     if (i > 0) {
       putlog(LOG_CMDS, "*", "#%s# %sstick ban %s",
              dcc[idx].nick, yn ? "" : "un", s);
----------------------- End of diff -----------------------


More information about the Changes mailing list