don't bridge info and event names fom matrix
This commit is contained in:
parent
b46fdd6752
commit
18902b21c6
|
@ -187,6 +187,10 @@ class PPfunMatrixBridge {
|
||||||
this.idToNameMap.set(userId, userId.substring(1));
|
this.idToNameMap.set(userId, userId.substring(1));
|
||||||
name = await this.getDisplayName(userId);
|
name = await this.getDisplayName(userId);
|
||||||
}
|
}
|
||||||
|
if (name === 'event' || name === 'info') {
|
||||||
|
// don'tallow special names used by system
|
||||||
|
return;
|
||||||
|
}
|
||||||
console.log(`MATRIX ${name}: ${msg}`);
|
console.log(`MATRIX ${name}: ${msg}`);
|
||||||
msg.split('\n').forEach((part) => {
|
msg.split('\n').forEach((part) => {
|
||||||
let msgLine = part;
|
let msgLine = part;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user