]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/channel.c
Xcode: don't list sample-ngircd.conf, use sample-ngircd.conf.tmpl
[ngircd-alex.git] / src / ngircd / channel.c
index 306f4deec0d1db5def2139a80730dcd482d3fcc5..6e8851b64113b44c4b5dd7e47faf370dba0f6675 100644 (file)
@@ -9,10 +9,8 @@
  * Please read the file COPYING, README and AUTHORS for more information.
  */
 
-
 #define __channel_c__
 
-
 #include "portab.h"
 
 /**
@@ -1084,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)