internal void PerformQuickLogin() { SendPacket(new LoginAck() { Username = Name, ServerName = server.Config.Name, }); SendPacket(new TopicFirst(server.Config.Topic)); server.SendUserlist(this); if (!IsCaptcha) { SendPacket(new OpChange(Admin > AdminLevel.User)); server.SendWebsite(); if (!string.IsNullOrEmpty(Message)) { server.SendPacket((s) => s.Vroom == Vroom && s.CanSee(this), new ServerPersonal(Name, Message)); } server.SendAvatars(this); server.PluginHost.OnSendJoin(this); } }
internal void PerformLogin() { LoggedIn = true; server.SendPacket(this, new LoginAck() { Username = Name, ServerName = server.Config.Name, }); var features = server.PluginHost.OnSendFeatures(this, server.Config.GetFeatures()); server.SendPacket(this, new Features() { Version = Strings.VersionLogin, SupportFlag = features, SharedTypes = 63, Language = server.Config.Language, Token = this.Token, }); server.SendPacket(this, new TopicFirst(server.Config.Topic)); server.SendUserlist(this); if (!IsCaptcha) { server.SendAvatars(this); server.SendPacket(this, new OpChange(Admin > AdminLevel.User)); server.PluginHost.OnSendJoin(this); } server.SendWebsite(); }