Module_state done: global datas management
newnemubot replaces old one
This commit is contained in:
parent
684cecd137
commit
25b2634ea3
12 changed files with 454 additions and 415 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue