v3.3 now considered stable
This commit is contained in:
parent
82198160fd
commit
fabdbc7c47
2
bot.py
2
bot.py
@ -37,7 +37,7 @@ class Bot:
|
||||
def __init__(self, ip, realname, mp=list()):
|
||||
# Bot general informations
|
||||
self.version = 3.3
|
||||
self.version_txt = "3.3-dev"
|
||||
self.version_txt = "3.3"
|
||||
|
||||
# Save various informations
|
||||
self.ip = ip
|
||||
|
12
importer.py
12
importer.py
@ -167,8 +167,6 @@ class ModuleLoader(SourceLoader):
|
||||
module.DATAS = None
|
||||
module.save = lambda: False
|
||||
module.CONF = self.config
|
||||
module.has_access = lambda msg: mod_has_access(module,
|
||||
module.CONF, msg)
|
||||
|
||||
module.ModuleEvent = event.ModuleEvent
|
||||
module.ModuleState = xmlparser.module_state.ModuleState
|
||||
@ -249,16 +247,6 @@ def mod_save(mod, datas_path):
|
||||
mod.DATAS.save(datas_path + "/" + mod.name + ".xml")
|
||||
mod.print_debug("Saving!")
|
||||
|
||||
def mod_has_access(mod, config, msg):
|
||||
if config is not None and config.hasNode("channel"):
|
||||
for chan in config.getNodes("channel"):
|
||||
if (chan["server"] is None or chan["server"] == msg.srv.id) and (
|
||||
chan["channel"] is None or chan["channel"] == msg.channel):
|
||||
return True
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
|
||||
def mod_send_response(context, server, res):
|
||||
if server in context.servers:
|
||||
context.servers[server].send_response(res, None)
|
||||
|
@ -35,7 +35,6 @@ if __name__ == "__main__":
|
||||
prmpt = prompt.Prompt()
|
||||
|
||||
# Register the hook for futur import
|
||||
import sys
|
||||
sys.meta_path.append(importer.ModuleFinder(context, prmpt))
|
||||
|
||||
#Add modules dir path
|
||||
|
Loading…
Reference in New Issue
Block a user