Fix the "mode.mode & MODE_APASS" vs "mode.apass[0]" bug another place.
[ircu2.10.12-pk.git] / ircd / channel.c
index f416f123dfd9f05cbf5996fc184914c2ef389647..98d8361d3908f1580df044fbb9ada09b3b8ef79a 100644 (file)
@@ -860,7 +860,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 = (chptr->mode.mode & MODE_APASS) != 0;
+  int                 feat_oplevels = (chptr->mode.apass[0]) != '\0';
 
   assert(0 != cptr);
   assert(0 != chptr);