Add channel verification before read and parse a message
This commit is contained in:
parent
0ceb475008
commit
df4caf2e74
2 changed files with 4 additions and 3 deletions
|
|
@ -119,6 +119,7 @@ def load_module(config, servers):
|
|||
mod.print = lambda msg: print("[%s] %s"%(mod.name, msg))
|
||||
mod.DATAS = xmlparser.parse_file(datas_path + "/" + config["name"] + ".xml")
|
||||
mod.CONF = config
|
||||
mod.SRVS = servers
|
||||
mod.has_access = lambda msg: mod_has_access(mod, config, msg)
|
||||
mod.save = lambda: mod_save(mod, datas_path, config)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue