From ff50430c761b5a862557215911ba663dcd142551 Mon Sep 17 00:00:00 2001 From: albino Date: Thu, 6 Apr 2017 20:24:02 +0000 Subject: [PATCH] fix for servers with cloaking enabled --- src/ngircd/irc-channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c index bad83834..0fedc699 100644 --- a/src/ngircd/irc-channel.c +++ b/src/ngircd/irc-channel.c @@ -120,8 +120,8 @@ join_allowed(CLIENT *Client, CHANNEL *chan, const char *channame, } if (Channel_HasMode(chan, 'z') && !Conn_UsesSSL(Client_Conn(Client)) - && strcmp(Client_Hostname(Client), "127.0.0.1") != 0 && strcmp(Client_Hostname(Client), "localhost") != 0 - && strcmp(Client_Hostname(Client), "localhost.localdomain") != 0) { + && strcmp(Client_IPAText(Client), "127.0.0.1") != 0 && strcmp(Client_IPAText(Client), "localhost") != 0 + && strcmp(Client_IPAText(Client), "localhost.localdomain") != 0) { /* Only "secure" clients are allowed, but clients doesn't * use SSL encryption */ IRC_WriteErrClient(Client, ERR_SECURECHANNEL_MSG,