Merge origin/main into moderator-tools

The built client is main's here; it is rebuilt from the merged sources.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
SnipzilandClaude Opus 5.5 committed 2026-10-17 16:33:14 -04:00
commit d09ee94e16
33 files changed
+649 -230

No files matched your search

+7 -7
View File
@@ -100,7 +100,7 @@ module.exports = ({findOnline}) => {
target.banReason = bans.reasonText(reason);
target.bannedBy = by;
target.bannedAt = now();
accounts.save();
accounts.save(target);
bans.record({account: target, action: "ban", seconds: duration, reason: target.banReason, by});
const session = findOnline(target.username);
if (session) {
@@ -116,7 +116,7 @@ module.exports = ({findOnline}) => {
delete target.banReason;
delete target.bannedBy;
delete target.bannedAt;
accounts.save();
accounts.save(target);
if (was) {
bans.record({account: target, action: "unban", by});
}
@@ -129,7 +129,7 @@ module.exports = ({findOnline}) => {
return false;
}
target.banReason = bans.reasonText(reason);
accounts.save();
accounts.save(target);
bans.record({account: target, action: "reason", reason: target.banReason, by});
return true;
},
@@ -137,7 +137,7 @@ module.exports = ({findOnline}) => {
// duration in seconds, PERMANENT, or 0 to lift
silence(target, duration) {
target.silencedUntil = duration === PERMANENT ? PERMANENT : (duration > 0 ? now() + duration : 0);
accounts.save();
accounts.save(target);
const session = findOnline(target.username);
if (session) {
// minutes, negative for "until further notice", 0 for "you may type again"
@@ -152,7 +152,7 @@ module.exports = ({findOnline}) => {
rejectName(target, by = "") {
target.nameRejected = {by, at: now()};
accounts.revokeTokens(target);
accounts.save();
accounts.save(target);
actions.kick(target);
return true;
},
@@ -160,7 +160,7 @@ module.exports = ({findOnline}) => {
// taken back: the name will do after all.
acceptName(target) {
delete target.nameRejected;
accounts.save();
accounts.save(target);
return true;
},
@@ -183,7 +183,7 @@ module.exports = ({findOnline}) => {
const before = target.currency[name] || 0;
target.currency[name] = Math.max(0, before + amount);
achievements.currencyChanged(target, name, target.currency[name] - before);
accounts.save();
accounts.save(target);
const session = findOnline(target.username);
if (session) {
// ItemXtCommManager.currencyUpdateResponse: [currencyType, newAmount, reason]