mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
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:
parent
9fe9e142c5
commit
9b00751ce0
@ -412,7 +412,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
self.reply(self.db.getConfirm(), irc=irc, msg=msg)
|
self.reply(self.db.getConfirm(), irc=irc, msg=msg)
|
||||||
else:
|
else:
|
||||||
assert self.irc is not None
|
assert self.irc is not None
|
||||||
self.irc.replySuccess()
|
self.reply(conf.supybot.replies.success())
|
||||||
|
|
||||||
def dunno(self, irc=None, msg=None):
|
def dunno(self, irc=None, msg=None):
|
||||||
if self.registryValue('personality'):
|
if self.registryValue('personality'):
|
||||||
@ -561,7 +561,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
self.confirm()
|
self.confirm()
|
||||||
else:
|
else:
|
||||||
# XXX: Should this be genericified?
|
# 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):
|
def doChange(self, irc, msg, match):
|
||||||
r"^(.+)\s+=~\s+(.+)$"
|
r"^(.+)\s+=~\s+(.+)$"
|
||||||
@ -586,7 +586,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
self.confirm()
|
self.confirm()
|
||||||
else:
|
else:
|
||||||
# XXX: Should this be genericified?
|
# 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):
|
def doUnknown(self, irc, msg, match):
|
||||||
r"^(.+?)\s*\?[?!. ]*$"
|
r"^(.+?)\s*\?[?!. ]*$"
|
||||||
|
Loading…
Reference in New Issue
Block a user