mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-26 20:14:20 +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
|
import supybot
|
||||||
|
|
||||||
#deprecated = True
|
|
||||||
|
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
__author__ = supybot.authors.jemfinch
|
__author__ = supybot.authors.jemfinch
|
||||||
|
|
||||||
@ -756,7 +754,9 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
if isAre == 'is':
|
if isAre == 'is':
|
||||||
if self.db.hasIs(dynamic.channel, key):
|
if self.db.hasIs(dynamic.channel, key):
|
||||||
oldValue = self.db.getIs(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)
|
self.reply('I already had it that way, %s.' % msg.nick)
|
||||||
return
|
return
|
||||||
if also:
|
if also:
|
||||||
@ -777,7 +777,9 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
else:
|
else:
|
||||||
if self.db.hasAre(dynamic.channel, key):
|
if self.db.hasAre(dynamic.channel, key):
|
||||||
oldValue = self.db.getAre(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)
|
self.reply('I already had it that way, %s.' % msg.nick)
|
||||||
return
|
return
|
||||||
if also:
|
if also:
|
||||||
|
Loading…
Reference in New Issue
Block a user