Offer a reset method.

This commit is contained in:
Jeremy Fincher 2004-02-13 04:43:06 +00:00
parent b5f48db29e
commit d3dcc62d1b

View File

@ -66,6 +66,11 @@ class Schedule(drivers.IrcDriver):
self.events = {} self.events = {}
self.counter = 0 self.counter = 0
def reset(self):
self.events.clear()
self.schedule[:] = []
self.counter = 0
def addEvent(self, f, t, name=None): def addEvent(self, f, t, name=None):
"""Schedules an event f to run at time t. """Schedules an event f to run at time t.