Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2005-03-20 04:01:24 UTC
Modified files:
ircd/channel.c ChangeLog
Log message:
Fix the "mode.mode & MODE_APASS" vs "mode.apass[0]" bug another place.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.567 ircu2.10/ChangeLog:1.568
--- ircu2.10/ChangeLog:1.567 Sat Mar 19 17:38:01 2005
+++ ircu2.10/ChangeLog Sat Mar 19 20:01:14 2005
@@ -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 <[EMAIL PROTECTED]>
Index: ircu2.10/ircd/channel.c
diff -u ircu2.10/ircd/channel.c:1.119 ircu2.10/ircd/channel.c:1.120
--- ircu2.10/ircd/channel.c:1.119 Sat Mar 19 17:38:01 2005
+++ ircu2.10/ircd/channel.c Sat Mar 19 20:01:12 2005
@@ -19,7 +19,7 @@
*/
/** @file
* @brief Channel management and maintanance
- * @version $Id: channel.c,v 1.119 2005/03/20 01:38:01 entrope Exp $
+ * @version $Id: channel.c,v 1.120 2005/03/20 04:01:12 entrope Exp $
*/
#include "config.h"
@@ -860,7 +860,7 @@
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);
----------------------- End of diff -----------------------