mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Actually *use* unaddressed.replyExistingFactoid
This commit is contained in:
parent
d32d6791fe
commit
b4817ec5d8
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user