mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fixed!
This commit is contained in:
parent
05ff7d3d16
commit
b2c156609f
@ -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>
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user