mirror of
https://git.sr.ht/~emerson/reflectionircd
synced 2025-04-13 09:59:52 +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,7 +497,8 @@ export class IRCUser {
|
|||
tags.set('account', sourceUser.accountName);
|
||||
tags.set('time', new Date(event["origin_server_ts"]).toISOString())
|
||||
this.clients.forEach((client) => {
|
||||
client.sendMessage(sourceUser.getMask(), 'DELETEMSG', [targetChannel.name, reason], tags);
|
||||
if (client.enabledCaps.has("draft/edit-message"))
|
||||
client.sendMessage(sourceUser.getMask(), 'DELETEMSG', [targetChannel.name, reason], tags);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue