From: Michael Poole Date: Sun, 20 Mar 2005 04:01:14 +0000 (+0000) Subject: Fix the "mode.mode & MODE_APASS" vs "mode.apass[0]" bug another place. X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=445d6eb3d126fb8a01e7b436fd53af5a1cfd0b58 Fix the "mode.mode & MODE_APASS" vs "mode.apass[0]" bug another place. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1331 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 22f5704..1925f13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * ircd/channel.c (sub1_from_channel): Check apass rather than mode to determine whether an apass is set (MODE_KEY/APASS/UPASS are not set in mode.mode). + (send_channel_modes): Use the same change when determining how to + send oplevels for channels. 2005-03-19 Michael Poole diff --git a/ircd/channel.c b/ircd/channel.c index f416f12..98d8361 100644 --- a/ircd/channel.c +++ b/ircd/channel.c @@ -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);