summaryrefslogtreecommitdiff
path: root/skinconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'skinconfig.c')
-rw-r--r--skinconfig.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/skinconfig.c b/skinconfig.c
index 3a03315..ec39da0 100644
--- a/skinconfig.c
+++ b/skinconfig.c
@@ -688,7 +688,17 @@ GLCD::cType cGraphLCDSkinConfig::GetToken(const GLCD::tSkinToken & Token)
if (Token.Attrib.Text == "")
return false;
- return s->ServiceIsAvailable(Token.Attrib.Text);
+ size_t found = Token.Attrib.Text.find(",");
+ std::string ServiceName = "";
+ std::string Options = "";
+
+ if (found != std::string::npos) {
+ ServiceName = Token.Attrib.Text.substr(0, found);
+ Options = Token.Attrib.Text.substr(found+1);
+ } else {
+ ServiceName = Token.Attrib.Text;
+ }
+ return s->ServiceIsAvailable(ServiceName, Options);
}
break;
case tokServiceItem: {