X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fchannel.c;fp=src%2Fngircd%2Fchannel.c;h=6e8851b64113b44c4b5dd7e47faf370dba0f6675;hp=d1f9c6c9790a17748b1a37dbed6ae3bb24e69a84;hb=5417a72536954927371d597e9a4e0453e70620e3;hpb=94e4562c1c732f7bf67bed2f77cc7b3b0aeaeafe diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index d1f9c6c9..6e8851b6 100644 --- a/src/ngircd/channel.c +++ b/src/ngircd/channel.c @@ -1082,10 +1082,10 @@ Channel_CheckKey(CHANNEL *Chan, CLIENT *Client, const char *Key) if (!strchr(Chan->modes, 'k')) return true; - if (strcmp(Chan->key, Key) == 0) - return true; if (*Key == '\0') return false; + if (strcmp(Chan->key, Key) == 0) + return true; file_name = array_start(&Chan->keyfile); if (!file_name)