We must use our internal reply() method if we're going to keep track of whether

we've already replied.
This commit is contained in:
James Vega 2004-08-30 00:56:00 +00:00
parent 9fe9e142c5
commit 9b00751ce0

View File

@ -412,7 +412,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
self.reply(self.db.getConfirm(), irc=irc, msg=msg)
else:
assert self.irc is not None
self.irc.replySuccess()
self.reply(conf.supybot.replies.success())
def dunno(self, irc=None, msg=None):
if self.registryValue('personality'):
@ -561,7 +561,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
self.confirm()
else:
# XXX: Should this be genericified?
irc.reply('I\'ve never heard of %s, %s!' % (fact, msg.nick))
self.reply('I\'ve never heard of %s, %s!' % (fact, msg.nick))
def doChange(self, irc, msg, match):
r"^(.+)\s+=~\s+(.+)$"
@ -586,7 +586,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
self.confirm()
else:
# XXX: Should this be genericified?
irc.reply('I\'ve never heard of %s, %s!' % (fact, msg.nick))
self.reply('I\'ve never heard of %s, %s!' % (fact, msg.nick))
def doUnknown(self, irc, msg, match):
r"^(.+?)\s*\?[?!. ]*$"