[eggheads-patches] three patches

Bastian Blank bastianb at gmx.de
Tue Oct 9 11:02:02 CST 2001


diff1: ircnet (net-type == 1) specific settings the bits are set 
       in chan.status not in chan.ircnet_status
diff2: gotmode have false arguments, it don't get the real mode change
diff3: BT_kick isn't initialized so eggdrop want to dereference 0x0

bastian
-------------- next part --------------
diff -urN eggdrop1.7.orig/src/mod/channels.mod/tclchan.c eggdrop1.7/src/mod/channels.mod/tclchan.c
--- eggdrop1.7.orig/src/mod/channels.mod/tclchan.c	Wed Aug 29 21:21:12 2001
+++ eggdrop1.7/src/mod/channels.mod/tclchan.c	Sat Oct  6 11:58:48 2001
@@ -987,8 +987,8 @@
         else chan->status |= flagval;
       }
       else if (lookup_flag_by_name(stupid_ircnet_flag_map, item[i]+1, &flagval)) {
-        if (item[i][0] == '-') chan->status &= ~flagval;
-        else chan->status |= flagval;
+        if (item[i][0] == '-') chan->ircnet_status &= ~flagval;
+        else chan->ircnet_status |= flagval;
       }
       else {
         * Hopefully it's a user-defined flag! */
-------------- next part --------------
diff -urN eggdrop1.7.orig/src/mod/irc.mod/irc.h eggdrop1.7/src/mod/irc.mod/irc.h
--- eggdrop1.7.orig/src/mod/irc.mod/irc.h	Sun Oct  7 13:03:41 2001
+++ eggdrop1.7/src/mod/irc.mod/irc.h	Mon Oct  8 18:11:46 2001
@@ -76,7 +76,7 @@
  		   struct userrec *opu, struct flag_record *opper);
 static int killmember(struct chanset_t *chan, char *nick);
 static void check_lonely_channel(struct chanset_t *chan);
-static int gotmode(char *, char *);
+static int gotmode(char *, char *, char *);
 
 #define newban(chan, mask, who)         newmask((chan)->channel.ban, mask, who)
 #define newexempt(chan, mask, who)      newmask((chan)->channel.exempt, mask, \
diff -urN eggdrop1.7.orig/src/mod/irc.mod/mode.c eggdrop1.7/src/mod/irc.mod/mode.c
--- eggdrop1.7.orig/src/mod/irc.mod/mode.c	Mon Aug 13 05:05:53 2001
+++ eggdrop1.7/src/mod/irc.mod/mode.c	Mon Oct  8 18:10:16 2001
@@ -854,7 +854,7 @@
   }
 }
 
-static int gotmode(char *from, char *origmsg)
+static int gotmode(char *from, char *ignore, char *origmsg)
 {
   char *nick, *ch, *op, *chg, *msg;
   char s[UHOSTLEN], buf[511];
-------------- next part --------------
diff -urN eggdrop1.7.orig/src/mod/irc.mod/irc.c eggdrop1.7/src/mod/irc.mod/irc.c
--- eggdrop1.7.orig/src/mod/irc.mod/irc.c	Sun Oct  7 13:03:41 2001
+++ eggdrop1.7/src/mod/irc.mod/irc.c	Tue Oct  9 17:12:12 2001
@@ -1050,6 +1050,7 @@
   BT_part = add_bind_table2("part", 5, "ssUss", MATCH_MASK, BIND_STACKABLE | BIND_USE_ATTR);
   BT_nick = add_bind_table2("nick", 5, "ssUss", MATCH_MASK, BIND_STACKABLE | BIND_USE_ATTR);
   BT_mode = add_bind_table2("mode", 6, "ssUsss", MATCH_MASK, BIND_STACKABLE | BIND_USE_ATTR);
+  BT_kick = add_bind_table2("kick", 6, "ssUsss", MATCH_MASK, BIND_STACKABLE | BIND_USE_ATTR);
   BT_need = add_bind_table2("need", 2, "ss", MATCH_MASK, BIND_STACKABLE | BIND_USE_ATTR);
   BT_pub = add_bind_table2("pub", 5, "ssUss", 0, BIND_USE_ATTR);
   BT_pubm = add_bind_table2("pubm", 5, "ssUss", MATCH_MASK, BIND_STACKABLE | BIND_USE_ATTR);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.eggheads.org/pipermail/patches/attachments/20011009/53dfede6/attachment.bin>


More information about the Patches mailing list