diff --git a/ppfun-bridge/src/ppfunMatrixBridge.js b/ppfun-bridge/src/ppfunMatrixBridge.js index 5388afc..f573c47 100644 --- a/ppfun-bridge/src/ppfunMatrixBridge.js +++ b/ppfun-bridge/src/ppfunMatrixBridge.js @@ -187,6 +187,10 @@ class PPfunMatrixBridge { this.idToNameMap.set(userId, userId.substring(1)); name = await this.getDisplayName(userId); } + if (name === 'event' || name === 'info') { + // don'tallow special names used by system + return; + } console.log(`MATRIX ${name}: ${msg}`); msg.split('\n').forEach((part) => { let msgLine = part;