Changed tag name to isError rather than errored.

This commit is contained in:
Jeremy Fincher 2004-09-24 20:28:31 +00:00
parent 7b68eb622d
commit 23fb9e1c7b

View File

@ -194,7 +194,7 @@ def reply(msg, s, prefixName=None, private=None,
def error(msg, s, **kwargs): def error(msg, s, **kwargs):
"""Makes an error reply to msg with the appropriate error payload.""" """Makes an error reply to msg with the appropriate error payload."""
kwargs['error'] = True kwargs['error'] = True
msg.tag('errored') msg.tag('isError')
return reply(msg, s, **kwargs) return reply(msg, s, **kwargs)
def getHelp(method, name=None): def getHelp(method, name=None):
@ -1200,8 +1200,8 @@ class PrivmsgRegexp(Privmsg):
irc.replyError() irc.replyError()
def doPrivmsg(self, irc, msg): def doPrivmsg(self, irc, msg):
if msg.errored: if msg.isError:
self.log.info('%s not running due to msg.errored.', self.name()) self.log.info('%s not running due to msg.isError.', self.name())
return return
for (r, name) in self.res: for (r, name) in self.res:
spans = sets.Set() spans = sets.Set()
@ -1266,8 +1266,8 @@ class PrivmsgCommandAndRegexp(Privmsg):
raise raise
def doPrivmsg(self, irc, msg): def doPrivmsg(self, irc, msg):
if msg.errored: if msg.isError:
self.log.debug('%s not running due to msg.errored.', self.name()) self.log.debug('%s not running due to msg.isError.', self.name())
return return
for (r, name) in self.res: for (r, name) in self.res:
for m in r.finditer(msg.args[1]): for m in r.finditer(msg.args[1]):