unnecessary comparisons

This commit is contained in:
Al Beano 2017-04-06 22:25:17 +01:00
parent 436240f3e1
commit 4cacd25490
1 changed files with 1 additions and 2 deletions

View File

@ -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,