using SharpChat.Bans;
using SharpChat.Users;
using System.Collections.Generic;
using System.Linq;
namespace SharpChat.Protocol.SockChat.Packets {
public class BanListPacket : BotResponsePacket {
private const string FORMAT = @"{0}, ";
public BanListPacket(IUser sender, IEnumerable bans)
: base(
sender.UserId,
BotArguments.BANS,
false,
string.Join(@", ", bans.Select(b => string.Format(FORMAT, b.UserName)))
) { }
}
}