sharp-chat/SharpChat/Packet/ChannelDeletePacket.cs

15 lines
372 B
C#

using System;
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}", ChannelName);
}
}
}