diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-05-31 17:18:36 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-05-31 17:18:36 +0000 |
commit | 99740e83f2f8a94467ba301431ca2c4192c4c2ed (patch) | |
tree | e4808f2861e2e6cac2e7c01fa8a9175a0afb7926 | |
parent | 6545335532d6ff11d5c56929579ab613a0b08757 (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
-rw-r--r-- | src/channel.c | 3 |
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)) |