git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38361 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-02-23 14:57:10 +00:00
parent 113a544b03
commit ad7d593b0e

View file

@ -235,10 +235,12 @@ replaceFields(NSDictionary *fields, NSString *template)
{
NSUserDefaults *d;
NSDictionary *c;
BOOL ok;
d = [EcProc cmdDefaults];
c = [d dictionaryForKey: @"Alerter"];
return [self configureWithDefaults: c];
ok = [self configureWithDefaults: c];
return ok;
}
- (BOOL) configureWithDefaults: (NSDictionary*)c
@ -475,7 +477,7 @@ replaceFields(NSDictionary *fields, NSString *template)
NSLog(@"ActiveTimes='%@' with missing HH:MM", obj);
return NO;
}
if (1 != c) m = 0;
if (1 == c) m = 0;
if (h < 0 || h > 23)
{
NSLog(@"ActiveTimes='%@' with hour out of range", obj);
@ -494,7 +496,7 @@ replaceFields(NSDictionary *fields, NSString *template)
NSLog(@"ActiveTimes='%@' with missing HH:MM", obj);
return NO;
}
if (1 != c) m = 0;
if (1 == c) m = 0;
if (h < 0 || h > 24 || (24 == h && 0 != m))
{
NSLog(@"ActiveTimes='%@' with hour out of range", obj);