From b4817ec5d8d0f6248430e5b6d3bca1d0b787046b Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 6 Jan 2005 04:00:04 +0000 Subject: [PATCH] Actually *use* unaddressed.replyExistingFactoid --- plugins/Infobot.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/Infobot.py b/plugins/Infobot.py index a6cbe9818..adac7ddcb 100755 --- a/plugins/Infobot.py +++ b/plugins/Infobot.py @@ -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: