aboutsummaryrefslogtreecommitdiffstats
path: root/src/mpdclient.c
diff options
context:
space:
mode:
authorAndreas Obergrusberger <tradiaz@yahoo.de>2006-09-07 20:25:08 +0000
committerAndreas Obergrusberger <tradiaz@yahoo.de>2006-09-07 20:25:08 +0000
commit420a65325b977440effcfd820b5a5f3b9f9698b1 (patch)
tree78b59c19d5e0621671c9d64ebef30d8a78c84713 /src/mpdclient.c
parent299c6bd912709f5e27fd6a8a0e1bad1bfb3e279a (diff)
downloadmpd-420a65325b977440effcfd820b5a5f3b9f9698b1.tar.gz
mpd-420a65325b977440effcfd820b5a5f3b9f9698b1.tar.xz
mpd-420a65325b977440effcfd820b5a5f3b9f9698b1.zip
due to bensonk's demand i added a splash screen.
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4741 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/mpdclient.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mpdclient.c b/src/mpdclient.c
index ffa74a8a7..88330b2a9 100644
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
@@ -91,10 +91,12 @@ mpdclient_finish_command(mpdclient_t *c)
{
gchar *msg = locale_to_utf8(c->connection->errorStr);
gint error = c->connection->error;
-
if( error == MPD_ERROR_ACK )
error = error | (c->connection->errorCode << 8);
-
+ if( c->connection->errorCode == MPD_ACK_ERROR_PERMISSION )
+ {
+ if(screen_auth(c) == 0) return 0;
+ }
error_cb(c, error, msg);
g_free(msg);
return error;