sharp-chat/SharpChat/Packet/ChannelDeletePacket.cs

16 lines
445 B
C#

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