Skip to content

Commit

Permalink
Alternating dummy names
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadyita committed Mar 11, 2024
1 parent 271d614 commit 9537e11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Client/Basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@ public function isOnline(int $uid, bool $cacheOnly=true): ?bool {
return $cachedOnlineStatus;
}
$this->write(new Out\BuddyAdd(charId: $uid));
unset($this->nameToUid["X"]);
$this->lookupUid("X");
$dummyName = substr(base64_encode(random_bytes(12)), 0, 12);
unset($this->nameToUid[$dummyName]);
$this->lookupUid($dummyName);
unset($this->nameToUid[$dummyName]);
$onlineStatus = $this->buddylist[$uid] ?? null;
$this->write(new Out\BuddyRemove(charId: $uid));
return $onlineStatus;
Expand Down

0 comments on commit 9537e11

Please sign in to comment.