This commit is contained in:
Devon Kirk 2026-07-01 17:18:22 -04:00 committed by GitHub
commit 4dd31dc384
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -245,7 +245,8 @@ static void fill_who(SERVER_REC *server, const char *channel, const char *user,
nicklist_set_account(chanrec, nickrec,
strcmp(account, "0") == 0 ? "*" : account);
}
sscanf(hops, "%d", &nickrec->hops);
if (sscanf(hops, "%d", &nickrec->hops) != 1)
nickrec->hops = 0;
}
nicklist_update_flags(server, nick,