mirror of
https://github.com/znc/znc.git
synced 2026-08-05 16:33:46 +02:00
Fix error in loading of python modules.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2203 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -305,7 +305,7 @@ def unload_module(module):
|
|||||||
|
|
||||||
def get_mod_info(modname, retmsg, modinfo):
|
def get_mod_info(modname, retmsg, modinfo):
|
||||||
'''0-not found, 1-error, 2-success'''
|
'''0-not found, 1-error, 2-success'''
|
||||||
pymodule, = find_open(modname)
|
pymodule, datadir = find_open(modname)
|
||||||
if pymodule is None:
|
if pymodule is None:
|
||||||
return 0
|
return 0
|
||||||
if modname not in pymodule.__dict__:
|
if modname not in pymodule.__dict__:
|
||||||
|
|||||||
Reference in New Issue
Block a user