summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-31 17:18:36 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-31 17:18:36 +0000
commit99740e83f2f8a94467ba301431ca2c4192c4c2ed (patch)
treee4808f2861e2e6cac2e7c01fa8a9175a0afb7926 /src
parent6545335532d6ff11d5c56929579ab613a0b08757 (diff)
- 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
Diffstat (limited to 'src')
-rw-r--r--src/channel.c3
1 files changed, 3 insertions, 0 deletions
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))