Add channel verification before read and parse a message
This commit is contained in:
parent
0ceb475008
commit
df4caf2e74
2 changed files with 4 additions and 3 deletions
|
@ -166,7 +166,7 @@ class Message:
|
|||
#Try modules
|
||||
else:
|
||||
for im in mods:
|
||||
if im.has_access(self) im.parseask(self):
|
||||
if im.has_access(self) and im.parseask(self):
|
||||
return
|
||||
|
||||
#Owner commands
|
||||
|
@ -221,12 +221,12 @@ class Message:
|
|||
|
||||
else:
|
||||
for im in mods:
|
||||
if im.parseanswer(self):
|
||||
if im.has_access(self) and im.parseanswer(self):
|
||||
return
|
||||
|
||||
else:
|
||||
for im in mods:
|
||||
if im.parselisten(self):
|
||||
if im.has_access(self) and im.parselisten(self):
|
||||
return
|
||||
|
||||
# def parseOwnerCmd(self, cmd):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue