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