[eggheads-patches] PATCH: resetexempts.patch

Fabian Knittel fknittel at gmx.de
Thu Oct 21 13:13:53 CST 1999


[ resetexempts.patch ]

This patch fixes a small mistake in the reset(exempts|invites)
makros, which caused the bug reported on eggheads:

.resetexempts
    -> attempted to remove non-existant exempts,
       actually the ban masks.

Fabian
-------------- next part --------------
diff -urN eggdrop1.3~/doc/UPDATES1.3 eggdrop1.3/doc/UPDATES1.3
--- eggdrop1.3~/doc/UPDATES1.3	Wed Oct 20 20:25:12 1999
+++ eggdrop1.3/doc/UPDATES1.3	Thu Oct 21 14:13:27 1999
@@ -4,6 +4,7 @@
 
 1.3.29
 Foundby   Fixedby   What....
+Michael	  Fabian    small error in reset(exempts|invites) makro
 dw	  Fabian    help_subst had broken columnated sections handling
 	  Fabian    fixed crash in german core language file
 	  Fabian    removed newline from "msg already queued" message
diff -urN eggdrop1.3~/src/mod/irc.mod/irc.h eggdrop1.3/src/mod/irc.mod/irc.h
--- eggdrop1.3~/src/mod/irc.mod/irc.h	Wed Oct 20 15:57:49 1999
+++ eggdrop1.3/src/mod/irc.mod/irc.h	Thu Oct 21 13:59:33 1999
@@ -30,8 +30,8 @@
  */
 
 #define resetbans(chan)         resetmasks((chan), (chan)->channel.ban, (chan)->bans, global_bans, 'b')
-#define resetexempts(chan)      resetmasks((chan), (chan)->channel.ban, (chan)->exempts, global_exempts, 'e')
-#define resetinvites(chan)      resetmasks((chan), (chan)->channel.ban, (chan)->invites, global_invites, 'I')
+#define resetexempts(chan)      resetmasks((chan), (chan)->channel.exempt, (chan)->exempts, global_exempts, 'e')
+#define resetinvites(chan)      resetmasks((chan), (chan)->channel.invite, (chan)->invites, global_invites, 'I')
 
 static void reset_chan_info(struct chanset_t *);
 static void recheck_channel(struct chanset_t *, int);


More information about the Patches mailing list