Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main

main
Bob Mottram 2021-03-02 14:10:17 +00:00
commit 65e07091ca
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ def speakerReplaceLinks(sayText: str, translate: {},
prevWord = '' prevWord = ''
for word in wordsList: for word in wordsList:
# replace mentions, but not re-tweets # replace mentions, but not re-tweets
if word.startswith('@') and prevWord != 'RT': if word.startswith('@') and not prevWord.endswith('RT'):
replacements[word] = \ replacements[word] = \
translate['mentioning'] + ' ' + word[1:] + ',' translate['mentioning'] + ' ' + word[1:] + ','
prevWord = word prevWord = word