Module_state done: global datas management

newnemubot replaces old one
This commit is contained in:
Némunaire 2012-05-30 11:58:27 +02:00
commit 25b2634ea3
12 changed files with 454 additions and 415 deletions

View file

@ -34,7 +34,7 @@ class Server(threading.Thread):
self.partner = "nbr23"
self.channels = list()
for channel in server.getElementsByTagName('channel'):
for channel in server.getChilds():
self.channels.append(channel.getAttribute("name"))
threading.Thread.__init__(self)
@ -102,6 +102,9 @@ class Server(threading.Thread):
else:
return False
def update_mods(self, mods):
self.mods = mods
def launch(self, mods):
if not self.connected:
self.stop = False