Actually *use* unaddressed.replyExistingFactoid

This commit is contained in:
James Vega 2005-01-06 04:00:04 +00:00
parent d32d6791fe
commit b4817ec5d8
1 changed files with 6 additions and 4 deletions

View File

@ -33,8 +33,6 @@ Infobot compatibility, for the parts that we don't support already.
import supybot
#deprecated = True
__revision__ = "$Id$"
__author__ = supybot.authors.jemfinch
@ -756,7 +754,9 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
if isAre == 'is':
if self.db.hasIs(dynamic.channel, key):
oldValue = self.db.getIs(dynamic.channel, key)
if oldValue.lower() == value.lower():
if oldValue.lower() == value.lower() and \
self.registryValue('unaddress.replyExistingValue',
dynamic.channel):
self.reply('I already had it that way, %s.' % msg.nick)
return
if also:
@ -777,7 +777,9 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
else:
if self.db.hasAre(dynamic.channel, key):
oldValue = self.db.getAre(dynamic.channel, key)
if oldValue.lower() == value.lower():
if oldValue.lower() == value.lower() and \
self.registryValue('unaddressed.replyExistingValue',
dynamic.channel):
self.reply('I already had it that way, %s.' % msg.nick)
return
if also: