ChatUtil has this stuff

This commit is contained in:
John Cote 2015-06-24 11:37:57 -04:00
parent 84e8ad4c0d
commit a110fb7a19

View file

@ -35,19 +35,3 @@ SCQuestEvent = 'SCQuestEvent'
OnScreen = 0 OnScreen = 0
OffScreen = 1 OffScreen = 1
Thought = 2 Thought = 2
ThoughtPrefix = '.'
def isThought(message):
if len(message) == 0:
return 0
elif message.find(ThoughtPrefix, 0, len(ThoughtPrefix)) >= 0:
return 1
else:
return 0
def removeThoughtPrefix(message):
if isThought(message):
return message[len(ThoughtPrefix):]
else:
return message