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: try:
id = int(id) id = int(id)
except ValueError: except ValueError:
irc.error(msg, 'Invalid event id: %r' % id) pass
return try:
schedule.removeEvent(id) schedule.removeEvent(id)
irc.reply(msg, conf.replySuccess) irc.reply(msg, conf.replySuccess)
except KeyError:
irc.error(msg, 'Invalid event id.')
def repeat(self, irc, msg, args): def repeat(self, irc, msg, args):
"""<name> <seconds> <command> """<name> <seconds> <command>

View File

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