mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-07 23:34:17 +02:00
feat: add support for broadcasting and handling channel deletions across clients
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user