don't bridge info and event names fom matrix

This commit is contained in:
HF 2023-01-17 19:02:59 +01:00
parent b46fdd6752
commit 18902b21c6

View File

@ -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;