1
0
Fork 0

v3.3 now considered stable

This commit is contained in:
nemunaire 2014-07-17 12:20:08 +02:00
parent 82198160fd
commit fabdbc7c47
3 changed files with 1 additions and 14 deletions

2
bot.py
View File

@ -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

View File

@ -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)

View File

@ -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