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
parent 684cecd137
commit 25b2634ea3
12 changed files with 453 additions and 414 deletions

View file

@ -223,9 +223,14 @@ class Message:
#Try modules
else:
for im in mods.keys():
if mods[im].parseask(self):
return
for im in mods:
#try:
if im.parseask(self):
return
#except AttributeError:
#print ("Warning: in module `%s', no function parseask defined." % im.name)
#im.parseask = lambda x: False
#continue
#Owner commands
elif self.content[0] == '`' and self.sender == self.srv.owner: