Fixes an issue with whisper unblocks (#7231)

* When attempting to unblock players via /in, players with short names would sometimes not get unblocked.
Thanks to @Tokeiburu!
This commit is contained in:
Aleos 2022-09-02 11:02:43 -04:00 committed by GitHub
parent 33fb75684a
commit 6b7d6e6841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15073,7 +15073,7 @@ void clif_parse_PMIgnore(int fd, struct map_session_data* sd)
// find entry
ARR_FIND( 0, MAX_IGNORE_LIST, i, sd->ignore[i].name[0] == '\0' || strcmp(sd->ignore[i].name, nick) == 0 );
if( i == MAX_IGNORE_LIST || sd->ignore[i].name[i] == '\0' ) { //Not found
if( i == MAX_IGNORE_LIST || sd->ignore[i].name[0] == '\0' ) { //Not found
clif_wisexin(sd, type, 1); // fail
return;
}