mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +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__
|
||||
class MySuccessClass(self.originalClass):
|
||||
def __call__(self):
|
||||
ret = pluginSelf.db.random(pluginSelf.target)
|
||||
ret = pluginSelf.db.random(pluginSelf.target or 'private_query')
|
||||
if ret is None:
|
||||
try:
|
||||
self.__class__ = pluginSelf.originalClass
|
||||
|
Loading…
Reference in New Issue
Block a user