From e71f39ea62bbcc73ba0b5690fec9e7c4103aad6a Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Mon, 20 Jan 2003 20:48:59 +0000 Subject: [PATCH] Fixed bug in non-working channel mode +H. There was a #ifdef ENABLE_INVISOPER block around +H checking, but this #ifdef is only at this place and is also never defined... Removed #ifdef because that's now in module... --- Changes | 1 + src/channel.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Changes b/Changes index 996e3bf0a..1404157f4 100644 --- a/Changes +++ b/Changes @@ -1801,3 +1801,4 @@ seen. gmtime warning still there - Removed ircdreg, bug (#0000614), outdated - Fixed win32 compile error because of report_error patch (oops..) - Minor documentation fixes reported by Jollino (LUSERS, OFLAGS mode h). +- Fixed bug in non-working channel mode +H. (#0000572) diff --git a/src/channel.c b/src/channel.c index 8c8bd791a..02fe7fde1 100644 --- a/src/channel.c +++ b/src/channel.c @@ -2381,10 +2381,8 @@ static int can_join(aClient *cptr, aClient *sptr, aChannel *chptr, char *key, ch if ((chptr->mode.mode & MODE_ADMONLY) && !IsSkoAdmin(sptr)) return (ERR_ADMONLY); -#ifdef ENABLE_INVISOPER if ((chptr->mode.mode & MODE_NOHIDING) && IsHiding(sptr)) return (ERR_NOHIDING); -#endif /* Admin, Coadmin, Netadmin, and SAdmin can still walk +b in +O */ if (IsOper(sptr) && !IsAdmin(sptr) && !IsCoAdmin(sptr) && !IsNetAdmin(sptr)