Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Revised analytics.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jul 24, 2023
1 parent 8fba767 commit b54cedb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/multiman.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ let MultiUserManager = class extends CustomEventSource {
if (e.active) {
if (this.pg?.name == "mlp") {
this.an?.sendError("PALETTE_PIXEL_ONLINE");
} else if (this.pg?.name) {
this.an?.sendError(`PALETTE_PIXEL_ONLINE_${this.pg.name.toUpperCase()}`);
} else {
this.an?.sendError("PALETTE_PIXEL_ONLINE_OTHER");
};
Expand All @@ -230,8 +232,10 @@ let MultiUserManager = class extends CustomEventSource {
template: this.pg.name || "mlp"
});
this.an?.sendError("PALETTE_PIXEL_CONTRIBUTE");
} else if (this.pg.name) {
this.an?.sendError(`PALETTE_PIXEL_CONTRIBUTE_${this.pg.name.toUpperCase()}`);
} else {
//this.an?.sendError("PALETTE_PIXEL_CONTRIBUTE_OTHER");
this.an?.sendError("PALETTE_PIXEL_CONTRIBUTE_OTHER");
};
this.dispatchEvent("userupdate", acct);
});
Expand All @@ -242,6 +246,8 @@ let MultiUserManager = class extends CustomEventSource {
confObj.banned = true;
if (this.pg.name == "mlp") {
this.an?.sendError("PALETTE_PIXEL_FAIL_BAN");
} else if (this.pg.name) {
this.an?.sendError(`PALETTE_PIXEL_FAIL_BAN_${this.pg.name.toUpperCase()}`);
} else {
this.an?.sendError("PALETTE_PIXEL_FAIL_BAN_OTHER");
};
Expand Down Expand Up @@ -412,6 +418,8 @@ let MultiUserManager = class extends CustomEventSource {
setInterval(() => {
if (this.pg?.name == "mlp") {
this.an?.sendError("PALETTE_INST_ONLINE");
} else if (this.pg?.name) {
this.an?.sendError(`PALETTE_INST_ONLINE_${this.pg.name.toUpperCase()}`);
} else {
this.an?.sendError("PALETTE_INST_ONLINE_OTHER");
};
Expand Down

0 comments on commit b54cedb

Please sign in to comment.