This commit is contained in:
Jeremy Fincher 2004-01-04 15:16:20 +00:00
parent 05ff7d3d16
commit b2c156609f
2 changed files with 7 additions and 5 deletions

View File

@ -127,10 +127,12 @@ class Scheduler(callbacks.Privmsg):
try:
id = int(id)
except ValueError:
irc.error(msg, 'Invalid event id: %r' % id)
return
schedule.removeEvent(id)
irc.reply(msg, conf.replySuccess)
pass
try:
schedule.removeEvent(id)
irc.reply(msg, conf.replySuccess)
except KeyError:
irc.error(msg, 'Invalid event id.')
def repeat(self, irc, msg, args):
"""<name> <seconds> <command>

View File

@ -296,7 +296,7 @@ class IrcObjectProxy:
log.debug('IrcObjectProxy.__init__: %s' % args)
self.irc = irc
self.msg = msg
self.args = args
self.args = args[:]
self.counter = 0
self.to = None
self.action = False