Rewrite old template variable names once

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
bluandClaude Fable 5.1 committed 2026-09-27 11:44:41 +02:00
1 parent 166cedd972
commit 8832e29552
2 files changed
+13 -1

No files matched your search

+4 -1
View File
@@ -15,7 +15,7 @@ import { FactCollector, type Joiner } from './src/collector.js';
import { filterFrom, instanceMatches } from './src/filters.js';
import { notifyAll, type Report } from './src/notify.js';
import { ReportPanel } from './src/panel.js';
import { settings } from './src/settings.js';
import { migrateTemplate, settings } from './src/settings.js';
import { toSelf, type Self } from './src/vrcnext-data.js';
type Ctx = PluginContext<typeof settings>;
@@ -138,6 +138,9 @@ export default definePlugin({
settings,
activate(ctx) {
const template = ctx.settings.get('template');
const migrated = migrateTemplate(template);
if (migrated !== template) void ctx.settings.set('template', migrated);
new ClubSecurity(ctx).start();
},