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:
darthgandalf
2010-12-24 07:31:44 +00:00
parent 7237b9cb2a
commit 88c84efc2f

View File

@@ -305,7 +305,7 @@ def unload_module(module):
def get_mod_info(modname, retmsg, modinfo):
'''0-not found, 1-error, 2-success'''
pymodule, = find_open(modname)
pymodule, datadir = find_open(modname)
if pymodule is None:
return 0
if modname not in pymodule.__dict__: