static void MuteUser(Client c, string name, bool global)
{
Client muted = ClientFromUsername(name);
if (muted != null)
{
if (global)
{
foreach (Client x in Listener.Clients)
{
if (x != muted)
x.Value.Mute.Add(muted);
return;
}
}
c.Value.Mute.Add(muted);
Console.WriteLine(name + " has been muted by " + c.Value.Username);
}
}