Attempt to fix the bug where fenrir sometimes reads all the spaces in a message.

This commit is contained in:
Storm Dragon 2025-06-09 02:33:36 -04:00
parent 8a223282df
commit e2fb28d92f

View File

@ -72,7 +72,8 @@ class punctuationManager():
currPunctLevel = '' currPunctLevel = ''
if not ignorePunctuation and self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower() in self.env['punctuation']['LEVELDICT']: if not ignorePunctuation and self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower() in self.env['punctuation']['LEVELDICT']:
currPunctLevel = self.env['punctuation']['LEVELDICT'][self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower()] currPunctLevel = self.env['punctuation']['LEVELDICT'][self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel').lower()]
else: elif not ignorePunctuation:
# Only use fallback punctuation if ignorePunctuation is False
currPunctLevel = string.punctuation +' §' currPunctLevel = string.punctuation +' §'
resultText = self.usePunctuationDict(resultText, self.env['punctuation']['PUNCTDICT'], currPunctLevel) resultText = self.usePunctuationDict(resultText, self.env['punctuation']['PUNCTDICT'], currPunctLevel)
resultText = self.removeUnused(resultText, currPunctLevel) resultText = self.removeUnused(resultText, currPunctLevel)