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