From 99740e83f2f8a94467ba301431ca2c4192c4c2ed Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 31 May 2013 17:18:36 +0000 Subject: - Don't let non-SSL users join +S channels if ircd has be compiled without SSL support. Spotted by Stuart Walsh git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2149 82007160-df01-0410-b94d-b575c5fd34c7 --- src/channel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/channel.c b/src/channel.c index 5661958..cd66e39 100644 --- a/src/channel.c +++ b/src/channel.c @@ -647,6 +647,9 @@ can_join(struct Client *source_p, struct Channel *chptr, const char *key) #ifdef HAVE_LIBCRYPTO if ((chptr->mode.mode & MODE_SSLONLY) && !source_p->localClient->fd.ssl) return ERR_SSLONLYCHAN; +#else + if ((chptr->mode.mode & MODE_SSLONLY)) + return ERR_SSLONLYCHAN; #endif if ((chptr->mode.mode & MODE_REGONLY) && !HasUMode(source_p, UMODE_REGISTERED)) -- cgit