otp: Implement sequential blacklist configuration field
This commit is contained in:
parent
98af2f1cbc
commit
fb9fa240ff
1 changed files with 2 additions and 1 deletions
|
@ -94,7 +94,8 @@ class ChatAgentUD(DistributedObjectGlobalUD):
|
|||
offset += len(word) + 1
|
||||
|
||||
cleanMessage = message
|
||||
modifications += self.cleanSequences(cleanMessage)
|
||||
if self.air.config.GetBool('want-sequenceblacklist', True):
|
||||
modifications += self.cleanSequences(cleanMessage)
|
||||
for modStart, modStop in modifications:
|
||||
cleanMessage = cleanMessage[:modStart] + '*'*(modStop-modStart+1) + cleanMessage[modStop+1:]
|
||||
|
||||
|
|
Loading…
Reference in a new issue