1.1 --- a/imip_agent.py Tue Sep 23 20:35:51 2014 +0200
1.2 +++ b/imip_agent.py Tue Sep 23 23:29:58 2014 +0200
1.3 @@ -127,7 +127,11 @@
1.4 def period_overlaps(freebusy, period):
1.5 dtstart, dtend = period[:2]
1.6 i = bisect_left(freebusy, (dtstart, dtend, None))
1.7 - return i < len(freebusy) and (dtend is None or freebusy[i][0] < dtend)
1.8 + return (
1.9 + i < len(freebusy) and (dtend is None or freebusy[i][0] < dtend)
1.10 + or
1.11 + i > 0 and freebusy[i - 1][1] > dtstart
1.12 + )
1.13
1.14 # Sending of outgoing messages.
1.15