Here's a patch that fixes an old bug causing ircu to rewrite/mask
server names on channel modes no matter what the HIS settings were.
Patched against and tested on the u2.10.12.03 release.

-Brian


diff -ur ircu2.10.12.03/ChangeLog ircu2.10.12.03-fix/ChangeLog
--- ircu2.10.12.03/ChangeLog    2005-11-13 10:24:31.000000000 -0500
+++ ircu2.10.12.03-fix/ChangeLog        2005-11-15 19:38:31.000000000 -0500
@@ -1,3 +1,8 @@
+2005-11-15  Brian Cline <[EMAIL PROTECTED]>
+
+       * ircd/channel.c (modebuf_flush_int): Don't ignore HEAD_IN_SAND
+       settings when presenting server names in channel mode changes.
+
 2005-11-13  Michael Poole <[EMAIL PROTECTED]>

        * include/patchlevel.h (PATCHLEVEL): Update for release.
diff -ur ircu2.10.12.03/ircd/channel.c ircu2.10.12.03-fix/ircd/channel.c
--- ircu2.10.12.03/ircd/channel.c       2005-11-09 07:36:12.000000000 -0500
+++ ircu2.10.12.03-fix/ircd/channel.c   2005-11-15 19:17:26.000000000 -0500
@@ -1563,7 +1563,7 @@

   /* Ok, if we were given the OPMODE flag, or its a server, hide the source.
    */
-  if (mbuf->mb_dest & MODEBUF_DEST_OPMODE ||
IsServer(mbuf->mb_source) || IsMe(mbuf->mb_source))
+  if (feature_bool(FEAT_HIS_REWRITE) && (mbuf->mb_dest &
MODEBUF_DEST_OPMODE || IsServer(mbuf->mb_source) ||
IsMe(mbuf->mb_source)))
     app_source = &his;
   else
     app_source = mbuf->mb_source;

_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to