All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before
	Moderators:  Moderators , Documentation Writers 
		
	
			
	
			
		
			
		
		
			
				
																			
								2lucene7  
						Noob 			
		Posts:  4Joined:  01 Jan 2017, 23:59Noob?:  No 
		
						
					
								
						#1 Post by 2lucene7  08 Mar 2017, 23:47 
			
			
			
			
			
			I was wondering if anyone knew the syntax for multiple days, I have tried
Code: Select all 
autoBreakTime tue | wed {
    startTime 01:00
    stopTime 02:00
}
I also tried
Code: Select all 
autoBreakTime [tue | wed] {
    startTime 01:00
    stopTime 02:00
}
and w/o spaces
Code: Select all 
autoBreakTime tue|wed {
    startTime 01:00
    stopTime 02:00
}
Code: Select all 
autoBreakTime [tue|wed] {
    startTime 01:00
    stopTime 02:00
}
but none of these syntax work. I was wondering what am i doing wrong?
 
		 
				
		
		 
	 
				
		
		
			
				
																			
								Mortimal  
						Developers 			
		Posts:  389Joined:  01 Nov 2008, 15:31Noob?:  No 
		
						
					
								
						#2 Post by Mortimal  09 Mar 2017, 05:59 
			
			
			
			
			
			Multiple days syntax not supported by plugin due to this code:.
Code: Select all 
my @wdays = qw/sun mon tue wed thu fri sat/;
....
my (undef, $min, $hour, undef, undef, undef, $wday) = localtime;
....
next unless $config{$prefix} =~ /^(?:all|$wdays[$wday])$/i;
Use 2 different blocks:
Code: Select all 
autoBreakTime wed {
    startTime 01:00
    stopTime 02:00
}
autoBreakTime tue {
    startTime 01:00
    stopTime 02:00
}BUT  if you change 
this line  in 
breakTime.pl :
Code: Select all 
next unless $config{$prefix} =~ /^(?:all|$wdays[$wday])$/i;
to 
this line :
Code: Select all 
next unless split /\s+/,  $config{$prefix} =~ /all|$wdays[$wday]/i;
it will work like this:
Code: Select all 
autoBreakTime wed tue {
    startTime 01:00
    stopTime 02:00
}Please use pin function for uploading your file contents!