Skip to content

Commit b69727d

Browse files
committed
Fixed string.tolower() being called on nil when players outside of your guild talked in party chat. Closes #2
1 parent 01b5211 commit b69727d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GuildNoteDisplay.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function app.NormalizeAndCompare(guildNote, shortName)
176176
guildNote = app.NormalizeSpecialCharacters(guildNote)
177177
shortName = app.NormalizeSpecialCharacters(shortName)
178178
end
179-
return guildNote, shortName, string.lower(shortName) ~= string.lower(guildNote)
179+
return guildNote, shortName, guildNote and string.lower(shortName) ~= string.lower(guildNote)
180180
end
181181

182182
-- Gets the guild note for a player by looping over the number of guild members

0 commit comments

Comments
 (0)