otp: Add newlines for increased readability.

This commit is contained in:
Cosmos 2014-07-31 00:40:28 +03:00
parent fb9fa240ff
commit 0509b5812d

View file

@ -96,6 +96,7 @@ class ChatAgentUD(DistributedObjectGlobalUD):
cleanMessage = message
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:]
@ -113,6 +114,7 @@ class ChatAgentUD(DistributedObjectGlobalUD):
words = message.split()
for wordit in xrange(len(words)):
word = words[wordit]
if word in self.blist:
seqlist = self.blist[words[wordit]]
for seqit in xrange(len(seqlist)):
@ -124,4 +126,5 @@ class ChatAgentUD(DistributedObjectGlobalUD):
if cmp(cmplist,splitseq) == 0:
modifications.append((offset, offset + len(word) + len(sequence) - 1))
offset += len(word) + 1
return modifications