mirror of
https://git.sr.ht/~emerson/reflectionircd
synced 2025-08-05 16:59:10 +00:00
make sure we only send DELETEMSG to supporting clients
This commit is contained in:
parent
0e1117e796
commit
e86e911e3d
1 changed files with 2 additions and 1 deletions
|
@ -497,6 +497,7 @@ export class IRCUser {
|
||||||
tags.set('account', sourceUser.accountName);
|
tags.set('account', sourceUser.accountName);
|
||||||
tags.set('time', new Date(event["origin_server_ts"]).toISOString())
|
tags.set('time', new Date(event["origin_server_ts"]).toISOString())
|
||||||
this.clients.forEach((client) => {
|
this.clients.forEach((client) => {
|
||||||
|
if (client.enabledCaps.has("draft/edit-message"))
|
||||||
client.sendMessage(sourceUser.getMask(), 'DELETEMSG', [targetChannel.name, reason], tags);
|
client.sendMessage(sourceUser.getMask(), 'DELETEMSG', [targetChannel.name, reason], tags);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue