16 lines
454 B
C#
16 lines
454 B
C#
namespace SharpChat.Packet {
|
|
public class UserChannelForceJoinPacket : ServerPacket {
|
|
private readonly string ChannelName;
|
|
|
|
public UserChannelForceJoinPacket(string channelName) {
|
|
ChannelName = channelName;
|
|
}
|
|
|
|
public override string Pack() {
|
|
return string.Format(
|
|
"5\t2\t{0}",
|
|
SockChatUtility.SanitiseChannelName(ChannelName)
|
|
);
|
|
}
|
|
}
|
|
}
|