public ib0tClient(AresClient client, ulong time, ushort id) { this.WebClient = true; this.WebCredentials = new Html5RequestEventArgs(); this.ID = id; this.Sock = client.Sock; this.WebCredentials.Key = String.Empty; this.data_in.AddRange(client.ReceiveDump); this.WebCredentials.Key1 = String.Empty; this.WebCredentials.Key2 = String.Empty; this.WebCredentials.KeyData = new byte[] { }; this.WebCredentials.OldProto = false; this.WebCredentials.Host = String.Empty; this.WebCredentials.Origin = String.Empty; this.Time = time; this.ProtoConnected = false; this.ExternalIP = ((IPEndPoint)this.Sock.RemoteEndPoint).Address; this.LocalEP = (IPEndPoint)this.Sock.LocalEndPoint; this._vroom = 0; this.Version = String.Empty; this.IgnoreList = new List <String>(); this.CustomClientTags = new List <String>(); this.Encryption = new Encryption { Mode = EncryptionMode.Unencrypted }; this.CaptchaWord = String.Empty; this.Captcha = !Settings.Get <bool>("captcha"); this.DNS = client.DNS; this.JoinTime = Helpers.UnixTime; this.FloodRecord = new FloodRecord(); this.Font = new AresFont(); // vvvvvvvvvvvvvvvvvv this.Extended = true; }
public void EmoteToTarget(IUser client, String sender, String text) { if (client is AresClient) { AresClient obj = (AresClient)client; obj.SendPacket(TCPOutbound.Emote(obj, sender, text)); } else if (client is ib0t.ib0tClient) { ib0t.ib0tClient obj = (ib0t.ib0tClient)client; obj.QueuePacket(ib0t.WebOutbound.EmoteTo(obj, sender, text)); } else if (client is LinkLeaf.LinkUser) { LinkLeaf.LinkUser obj = (LinkLeaf.LinkUser)client; if (ServerCore.Linker.IsLinked) { ServerCore.Linker.SendPacket(LinkLeaf.LeafOutbound.LeafEmoteTextToUser(ServerCore.Linker, obj.LinkCredentials.Ident, obj.Name, sender, text)); } } }