Fix oplevel, chkconf and ipv6 bugs.
[ircu2.10.12-pk.git] / ircd / channel.c
index 3f4f67dd0f2cf12042bbbc0814c1b9fd3f5e5d3a..06634693c37e6088e4f389646bab7e53bf8b9769 100644 (file)
@@ -840,7 +840,7 @@ void send_channel_modes(struct Client *cptr, struct Channel *chptr)
   int                 opped_members_index = 0;
   struct Membership** opped_members = NULL;
   int                 last_oplevel = 0;
-  int                 feat_oplevels =  feature_bool(FEAT_OPLEVELS);
+  int                 feat_oplevels = (chptr->mode.mode & MODE_APASS) != 0;
 
   assert(0 != cptr);
   assert(0 != chptr);