From 4cacd254900992f614156f26488725ed891418a8 Mon Sep 17 00:00:00 2001 From: albino Date: Thu, 6 Apr 2017 22:25:17 +0100 Subject: [PATCH] unnecessary comparisons --- src/ngircd/irc-channel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c index 0fedc699..9ce2325f 100644 --- a/src/ngircd/irc-channel.c +++ b/src/ngircd/irc-channel.c @@ -120,8 +120,7 @@ join_allowed(CLIENT *Client, CHANNEL *chan, const char *channame, } if (Channel_HasMode(chan, 'z') && !Conn_UsesSSL(Client_Conn(Client)) - && strcmp(Client_IPAText(Client), "127.0.0.1") != 0 && strcmp(Client_IPAText(Client), "localhost") != 0 - && strcmp(Client_IPAText(Client), "localhost.localdomain") != 0) { + && strcmp(Client_IPAText(Client), "127.0.0.1") != 0) { /* Only "secure" clients are allowed, but clients doesn't * use SSL encryption */ IRC_WriteErrClient(Client, ERR_SECURECHANNEL_MSG,