summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/channel.c b/src/channel.c
index 1c04488..e588add 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -641,13 +641,8 @@ is_banned(const struct Channel *chptr, const struct Client *who)
int
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)
+ if ((chptr->mode.mode & MODE_SSLONLY) && !HasUMode(source_p, UMODE_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))
return ERR_NEEDREGGEDNICK;