mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +02:00
Merge CGlobalModule(s) into CModule(s)
This commit is contained in:
@@ -443,7 +443,12 @@ def load_module(modname, args, user, retmsg, modpython):
|
||||
module.SetDescription(cl.description)
|
||||
module.SetArgs(args)
|
||||
module.SetModPath(pymodule.__file__)
|
||||
user.GetModules().push_back(module._cmod)
|
||||
|
||||
if user:
|
||||
user.GetModules().push_back(module._cmod)
|
||||
else:
|
||||
CZNC.Get().GetModules().push_back(module._cmod)
|
||||
|
||||
try:
|
||||
loaded = True
|
||||
if not module.OnLoad(args, retmsg):
|
||||
|
||||
Reference in New Issue
Block a user