feat: add support for broadcasting and handling channel deletions across clients

This commit is contained in:
Stone_Red
2026-07-17 16:35:59 +02:00
committed by HueByte
parent 4d25458717
commit a9519a52cc
11 changed files with 39 additions and 0 deletions
+8
View File
@@ -101,6 +101,14 @@ public class IrcBroadcaster : IChatBroadcaster
}
}
public async Task SendChannelDeletedAsync(string channelName)
{
foreach (var conn in _gateway.GetConnectionsInChannel(channelName))
{
await conn.SendAsync($":{_gateway.Options.ServerName} NOTICE {conn.Nickname ?? "*"} :Channel #{channelName} has been deleted");
}
}
public async Task SendChannelNukedAsync(string channelName)
{
foreach (var conn in _gateway.GetConnectionsInChannel(channelName))