[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sat Dec 1 11:36:02 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-01 17:35:16 UTC
Commited by: Federico Mennite <ite at techmonkeys.org>

Modified files:
     modules/channels/channels.c modules/irc/chan.c modules/irc/mode.c
     src/chan.h src/tcluser.c

Log message:

* Added DalNet's +M support. Patch by Wcc <will at centerofnowhere.com>* Fixed a stupid typo of mine in tcl_botattr, which prevented a successful build.

---------------------- diff included ----------------------
Index: eggdrop1.7/modules/channels/channels.c
diff -u eggdrop1.7/modules/channels/channels.c:1.1 eggdrop1.7/modules/channels/channels.c:1.2
--- eggdrop1.7/modules/channels/channels.c:1.1	Sat Oct 27 11:34:48 2001
+++ eggdrop1.7/modules/channels/channels.c	Sat Dec  1 11:35:05 2001
@@ -2,7 +2,7 @@
  * channels.c -- part of channels.mod
  *   support for channels within the bot
  *
- * $Id: channels.c,v 1.1 2001/10/27 16:34:48 ite Exp $
+ * $Id: channels.c,v 1.2 2001/12/01 17:35:05 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -112,6 +112,9 @@
     case 'R':
       i = CHANREGON;
       break;
+    case 'M':
+      i = CHANMODR;
+      break;
     case 't':
       i = CHANTOPIC;
       break;
@@ -199,6 +202,8 @@
       *p++ = 'c';
     if (tst & CHANREGON)
       *p++ = 'R';
+    if (tst & CHANMODR)
+      *p++ = 'M';
     if (tst & CHANTOPIC)
       *p++ = 't';
     if (tst & CHANNOMSG)
Index: eggdrop1.7/modules/irc/chan.c
diff -u eggdrop1.7/modules/irc/chan.c:1.2 eggdrop1.7/modules/irc/chan.c:1.3
--- eggdrop1.7/modules/irc/chan.c:1.2	Sat Dec  1 10:49:31 2001
+++ eggdrop1.7/modules/irc/chan.c	Sat Dec  1 11:35:06 2001
@@ -6,7 +6,7 @@
  *   user kickban, kick, op, deop
  *   idle kicking
  *
- * $Id: chan.c,v 1.2 2001/12/01 16:49:31 ite Exp $
+ * $Id: chan.c,v 1.3 2001/12/01 17:35:06 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -93,6 +93,8 @@
     s[i++] = 'R';
   if (atr & CHANTOPIC)
     s[i++] = 't';
+  if (atr & CHANMODR)
+    s[i++] = 'M';
   if (atr & CHANNOMSG)
     s[i++] = 'n';
   if (atr & CHANANON)
@@ -645,6 +647,10 @@
       add_mode(chan, '+', 'R', "");
     else if (mns & CHANREGON && cur & CHANREGON)
       add_mode(chan, '-', 'R', "");
+    if (pls & CHANMODR && !(cur & CHANMODR))
+      add_mode(chan, '+', 'M', "");
+    else if (mns & CHANMODR && cur & CHANMODR)
+      add_mode(chan, '-', 'M', "");
     if (pls & CHANTOPIC && !(cur & CHANTOPIC))
       add_mode(chan, '+', 't', "");
     else if (mns & CHANTOPIC && cur & CHANTOPIC)
@@ -834,6 +840,8 @@
       chan->channel.mode |= CHANNOCLR;
     if (msg[i] == 'R')
       chan->channel.mode |= CHANREGON;
+    if (msg[i] == 'M')
+      chan->channel.mode |= CHANMODR;
     if (msg[i] == 't')
       chan->channel.mode |= CHANTOPIC;
     if (msg[i] == 'n')
Index: eggdrop1.7/modules/irc/mode.c
diff -u eggdrop1.7/modules/irc/mode.c:1.2 eggdrop1.7/modules/irc/mode.c:1.3
--- eggdrop1.7/modules/irc/mode.c:1.2	Sat Dec  1 08:27:01 2001
+++ eggdrop1.7/modules/irc/mode.c	Sat Dec  1 11:35:06 2001
@@ -4,7 +4,7 @@
  *   channel mode changes and the bot's reaction to them
  *   setting and getting the current wanted channel modes
  *
- * $Id: mode.c,v 1.2 2001/12/01 14:27:01 ite Exp $
+ * $Id: mode.c,v 1.3 2001/12/01 17:35:06 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -946,6 +946,11 @@
 	  break;
 	case 'R':
 	  todo = CHANREGON;
+	  if (!nick && bounce_modes)
+	    reversing = 1;
+	  break;
+	case 'M':
+	  todo = CHANMODR;
 	  if (!nick && bounce_modes)
 	    reversing = 1;
 	  break;
Index: eggdrop1.7/src/chan.h
diff -u eggdrop1.7/src/chan.h:1.24 eggdrop1.7/src/chan.h:1.25
--- eggdrop1.7/src/chan.h:1.24	Wed Aug 22 22:19:45 2001
+++ eggdrop1.7/src/chan.h	Sat Dec  1 11:35:06 2001
@@ -3,7 +3,7 @@
  *   stuff common to chan.c and mode.c
  *   users.h needs to be loaded too
  *
- * $Id: chan.h,v 1.24 2001/08/23 03:19:45 stdarg Exp $
+ * $Id: chan.h,v 1.25 2001/12/01 17:35:06 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -119,6 +119,7 @@
 #define CHANQUIET  0x0200	/* +q -- ircd 2.9			*/
 #define CHANNOCLR  0x0400	/* +c -- bahamut			*/
 #define CHANREGON  0x0800	/* +R -- bahamut			*/
+#define CHANMODR   0x1000	/* +M -- bahamut			*/
 
 /* For every channel i'm supposed to be active on */
 struct chanset_t {
Index: eggdrop1.7/src/tcluser.c
diff -u eggdrop1.7/src/tcluser.c:1.31 eggdrop1.7/src/tcluser.c:1.32
--- eggdrop1.7/src/tcluser.c:1.31	Sat Dec  1 10:33:38 2001
+++ eggdrop1.7/src/tcluser.c	Sat Dec  1 11:35:06 2001
@@ -2,7 +2,7 @@
  * tcluser.c -- handles:
  *   Tcl stubs for the user-record-oriented commands
  *
- * $Id: tcluser.c,v 1.31 2001/12/01 16:33:38 ite Exp $
+ * $Id: tcluser.c,v 1.32 2001/12/01 17:35:06 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -193,7 +193,7 @@
     if (argc < 3)
       chg = NULL;
     else
-      chg argv[2];
+      chg = argv[2];
   }
   if (chan && !findchan_by_dname(chan)) {
     Tcl_AppendResult(irp, "no such channel", NULL);
----------------------- End of diff -----------------------



More information about the Changes mailing list