sharp-chat/SharpChat/Packet/ChannelDeletePacket.cs

16 lines
440 B
C#

namespace SharpChat.Packet {
public class ChannelDeletePacket : ServerPacket {
private readonly string ChannelName;
public ChannelDeletePacket(string channelName) {
ChannelName = channelName;
}
public override string Pack() {
return string.Format(
"4\t2\t{0}",
SockChatUtility.SanitiseChannelName(ChannelName)
);
}
}
}