git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1330
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2005-03-19 Michael Poole <mdpoole@troilus.org>
+
+ * 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).
+
2005-03-19 Michael Poole <mdpoole@troilus.org>
* include/IPcheck.h (IPcheck_connect_fail): Take a Client
* who then will educate them on the use of Apass/upass.
*/
- if (!(chptr->mode.mode & MODE_APASS)) /* If no Apass, destroy now. */
+ if (!chptr->mode.apass[0]) /* If no Apass, destroy now. */
destruct_channel(chptr);
else if (TStime() - chptr->creationtime < 172800) /* Channel younger than 48 hours? */
schedule_destruct_event_1m(chptr); /* Get rid of it in approximately 4-5 minutes */