From: Andreas Obergrusberger Date: Sat, 9 Sep 2006 21:47:47 +0000 (+0000) Subject: http://musicpd.org/mantis/view.php?id=1324 X-Git-Tag: v0.12_alpha1~360 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=64e1a9e2ccf11765723b3b65ebac188ec239733c;p=ncmpc.git http://musicpd.org/mantis/view.php?id=1324 git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4757 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- diff --git a/src/conf.c b/src/conf.c index 3efdbbc..3af986b 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)); }