mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Changed tag name to isError rather than errored.
This commit is contained in:
parent
7b68eb622d
commit
23fb9e1c7b
@ -194,7 +194,7 @@ def reply(msg, s, prefixName=None, private=None,
|
||||
def error(msg, s, **kwargs):
|
||||
"""Makes an error reply to msg with the appropriate error payload."""
|
||||
kwargs['error'] = True
|
||||
msg.tag('errored')
|
||||
msg.tag('isError')
|
||||
return reply(msg, s, **kwargs)
|
||||
|
||||
def getHelp(method, name=None):
|
||||
@ -1200,8 +1200,8 @@ class PrivmsgRegexp(Privmsg):
|
||||
irc.replyError()
|
||||
|
||||
def doPrivmsg(self, irc, msg):
|
||||
if msg.errored:
|
||||
self.log.info('%s not running due to msg.errored.', self.name())
|
||||
if msg.isError:
|
||||
self.log.info('%s not running due to msg.isError.', self.name())
|
||||
return
|
||||
for (r, name) in self.res:
|
||||
spans = sets.Set()
|
||||
@ -1266,8 +1266,8 @@ class PrivmsgCommandAndRegexp(Privmsg):
|
||||
raise
|
||||
|
||||
def doPrivmsg(self, irc, msg):
|
||||
if msg.errored:
|
||||
self.log.debug('%s not running due to msg.errored.', self.name())
|
||||
if msg.isError:
|
||||
self.log.debug('%s not running due to msg.isError.', self.name())
|
||||
return
|
||||
for (r, name) in self.res:
|
||||
for m in r.finditer(msg.args[1]):
|
||||
|
Loading…
Reference in New Issue
Block a user