mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 11:34:06 +01:00
Success: Fix load in private query. Closes GH-313.
This commit is contained in:
parent
7bb72c72be
commit
816ae143bc
@ -49,7 +49,7 @@ class Success(plugins.ChannelIdDatabasePlugin):
|
|||||||
self.originalClass = conf.supybot.replies.success.__class__
|
self.originalClass = conf.supybot.replies.success.__class__
|
||||||
class MySuccessClass(self.originalClass):
|
class MySuccessClass(self.originalClass):
|
||||||
def __call__(self):
|
def __call__(self):
|
||||||
ret = pluginSelf.db.random(pluginSelf.target)
|
ret = pluginSelf.db.random(pluginSelf.target or 'private_query')
|
||||||
if ret is None:
|
if ret is None:
|
||||||
try:
|
try:
|
||||||
self.__class__ = pluginSelf.originalClass
|
self.__class__ = pluginSelf.originalClass
|
||||||
|
Loading…
Reference in New Issue
Block a user