[PATCH] Bug in hyb7.2.3 (mode #c -o on halfop)

caf kevin at sylandro.com
Thu May 8 01:56:16 EDT 2008


Hi,

I've found a bug in ircd-hybrid-7.2.3.  If a channel op sets mode -o  
on a halfop, hybrid tries to set mode -h on the _next_ user (if there  
is one) in the mode command.  Eg:

/mode #test +hh alice bob

/mode #test -o+o alice bob

This responds incorrectly by leaving alice alone and de-half-opping bob:

∙φ∙ mode/#test [-h bob] by caf

I've attached a patch that fixes it.

     - caf

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------- next part --------------
--- channel_mode.c.ORIG	2008-05-08 15:31:49.212341512 +1000
+++ channel_mode.c	2008-05-08 15:39:07.491732262 +1000
@@ -964,8 +964,11 @@
   {
 #ifdef HALFOPS
     if (has_member_flags(member, CHFL_HALFOP))
+    {
+      --*parn;
       chm_hop(client_p, source_p, chptr, parc, parn, parv, errors, alev,
               dir, c, d, chname);
+    }
 #endif
     return;
   }


More information about the hybrid mailing list