Skip to content

Commit 40f9f55

Browse files
committed
early return if msg in undef
1 parent 49babac commit 40f9f55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Utilities/ChatMessages.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ function chatRoomNormalMessage(msg: string) {
103103
}
104104

105105
function replaceTemplate(msg: string, source?: Character) {
106+
if (!msg) return '';
107+
106108
const playerPronouns = CharacterPronounDescription(Player);
107109
const playerName = CharacterNickname(Player);
108110

0 commit comments

Comments
 (0)