logs-content: Changed possessive prefix to be based on shortName, not nick's prefix. E.g. Linda_Vasquez => Linda's, not Linda'

This commit is contained in:
2018-09-30 14:38:42 +02:00
parent 3981bb1d71
commit db069d1c1a
@@ -56,10 +56,8 @@ module.exports = class {
this.state.name = character.name
this.state.shortName = character.shortName
if (input.post.nick.endsWith("'s")) {
this.state.nameSuffix = "'s"
} else if (input.post.nick.endsWith("'")) {
this.state.nameSuffix = "'"
if (input.post.nick.endsWith("'s") || input.post.nick.endsWith("'")) {
this.state.nameSuffix = (character.shortName.endsWith("s") || character.shortName.endsWith("z")) ? "'" : "'s"
}
return