summaryrefslogtreecommitdiff
path: root/blacklist.c
diff options
context:
space:
mode:
Diffstat (limited to 'blacklist.c')
-rw-r--r--blacklist.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/blacklist.c b/blacklist.c
index 4bacf2c..786ef87 100644
--- a/blacklist.c
+++ b/blacklist.c
@@ -21,16 +21,9 @@ bool cBlacklist::Apply(cChannel *Channel)
void cBlacklist::SetFromString(char *s, bool Enabled)
{
Free();
- enabled = Enabled;
- if (s[0] == '!')
- string = strdup(s+1);
- else
- string = strdup(s);
- if (s[0] == '!' || s[0] == '#')
- enabled = false;
- char *p = (s[0] == '#') ? NULL : s;
- if (p) {
- char *p = (s[0] == '!') ? s+1 : s;
+ cListItem::SetFromString(s, Enabled);
+ if (enabled) {
+ char *p = (s[0] == '!') ? s + 1 : s;
numchannels = LoadChannelsFromString(p);
}
}