Skip to content

Commit

Permalink
Fixes ignore case on NameAlert
Browse files Browse the repository at this point in the history
uoil committed Nov 27, 2020
1 parent 6d0cd35 commit aa98a6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ public void onChat(EventReceivePacket event) {
return;
}

if (text.contains(localUsername)) {
if (text.toLowerCase().contains(localUsername.toLowerCase())) {
text = StringUtils.stripControlCodes(text);
// code below is for public chat
Pattern chatUsernamePattern = Pattern.compile(REGEX_NAME);

0 comments on commit aa98a6b

Please sign in to comment.