Removed Sock Chat v2 crust.

This commit is contained in:
Pachira 2022-08-30 16:04:38 +00:00
parent 08f9a2c5a1
commit 9790f77a16
4 changed files with 1 additions and 8 deletions

View file

@ -22,10 +22,8 @@ namespace SharpChat.Packet {
sb.Append(User.Pack());
sb.Append('\t');
sb.Append(Channel.Name);
/*sb.Append('\t');
sb.Append(SockChatServer.EXT_VERSION);
sb.Append('\t');
sb.Append(Session.Id);*/
sb.Append(SockChatServer.MSG_LENGTH_MAX);
return new[] { sb.ToString() };
}

View file

@ -48,8 +48,6 @@ namespace SharpChat.Packet {
Message.Flags.HasFlag(ChatMessageFlags.Action) ? '0' : '1',
Message.Flags.HasFlag(ChatMessageFlags.Private) ? '1' : '0'
);
sb.Append('\t');
sb.Append(Message.TargetName);
yield return sb.ToString();
}

View file

@ -28,8 +28,6 @@ namespace SharpChat.Packet {
sb.Append((int)SockChatServerPacket.ContextClear);
sb.Append('\t');
sb.Append((int)Mode);
sb.Append('\t');
sb.Append(Channel?.TargetName ?? string.Empty);
yield return sb.ToString();
}

View file

@ -14,7 +14,6 @@ using System.Text;
namespace SharpChat {
public class SockChatServer : IDisposable {
public const int EXT_VERSION = 2;
public const int MSG_LENGTH_MAX = 5000;
#if DEBUG