aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorAndreas Obergrusberger <tradiaz@yahoo.de>2006-09-09 21:47:47 +0000
committerAndreas Obergrusberger <tradiaz@yahoo.de>2006-09-09 21:47:47 +0000
commit64e1a9e2ccf11765723b3b65ebac188ec239733c (patch)
tree60d95bcba384d9e33575b7051d00ebd4568a23f7 /src/conf.c
parentb93dee727713d9e471e801242fbce2a762c66e75 (diff)
downloadmpd-64e1a9e2ccf11765723b3b65ebac188ec239733c.tar.gz
mpd-64e1a9e2ccf11765723b3b65ebac188ec239733c.tar.xz
mpd-64e1a9e2ccf11765723b3b65ebac188ec239733c.zip
http://musicpd.org/mantis/view.php?id=1324
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4757 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/conf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c
index 3efdbbc69..3af986b95 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -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));
}