Code

http://musicpd.org/mantis/view.php?id=1324
authorAndreas Obergrusberger <tradiaz@yahoo.de>
Sat, 9 Sep 2006 21:47:47 +0000 (21:47 +0000)
committerAndreas Obergrusberger <tradiaz@yahoo.de>
Sat, 9 Sep 2006 21:47:47 +0000 (21:47 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4757 09075e82-0dd4-0310-85a5-a0d7c8717e4f

src/conf.c

index 3efdbbc6977c0e4b2c3c3b98c86c9d70a296524e..3af986b95fe89df1c99a72021c2b2b03b2352ddb 100644 (file)
@@ -67,6 +67,7 @@
 #define CONF_TIMEDISPLAY_TYPE        "timedisplay-type"
 #define CONF_HOST                    "host"
 #define CONF_PORT                    "port"
+#define CONF_PASSWORD                "password"
 #define CONF_LYRICS_TIMEOUT          "lyrics-timeout"
 #define CONF_SHOW_SPLASH             "show-splash"
 
@@ -575,7 +576,11 @@ read_rc_file(char *filename, options_t *options)
            {
            options->port = atoi(get_format(value));
            }
-               else if( !strcasecmp(CONF_LYRICS_TIMEOUT, name))
+           else if( !strcasecmp(CONF_PASSWORD, name))
+             {
+               options->password = get_format(value);
+             }
+           else if( !strcasecmp(CONF_LYRICS_TIMEOUT, name))
            {
            options->lyrics_timeout = atoi(get_format(value));
            }