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:
@@ -56,10 +56,8 @@ module.exports = class {
|
|||||||
this.state.name = character.name
|
this.state.name = character.name
|
||||||
this.state.shortName = character.shortName
|
this.state.shortName = character.shortName
|
||||||
|
|
||||||
if (input.post.nick.endsWith("'s")) {
|
if (input.post.nick.endsWith("'s") || input.post.nick.endsWith("'")) {
|
||||||
this.state.nameSuffix = "'s"
|
this.state.nameSuffix = (character.shortName.endsWith("s") || character.shortName.endsWith("z")) ? "'" : "'s"
|
||||||
} else if (input.post.nick.endsWith("'")) {
|
|
||||||
this.state.nameSuffix = "'"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user