mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Properly naming registry variables is good.
This commit is contained in:
parent
d031997999
commit
ec91c6d7d9
@ -755,7 +755,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
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() and \
|
if oldValue.lower() == value.lower() and \
|
||||||
self.registryValue('unaddress.replyExistingValue',
|
self.registryValue('unaddress.replyExistingFactoid',
|
||||||
dynamic.channel):
|
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
|
||||||
@ -778,7 +778,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
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() and \
|
if oldValue.lower() == value.lower() and \
|
||||||
self.registryValue('unaddressed.replyExistingValue',
|
self.registryValue('unaddressed.replyExistingFactoid',
|
||||||
dynamic.channel):
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user