Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/activity-tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class ActivityTracker {
// Failed to get presence, going to fallback to admin api.
}

const canUseWhois = this.canUseWhois && userId.split(":")[1] === this.opts.serverName;
const canUseWhois = this.canUseWhois && userId.split(":", 2)[1] === this.opts.serverName;
if (canUseWhois) {
try {
const whois = await this.client.adminApis.whoisUser(userId);
Expand Down