diff --git a/Naticord/Forms/DM.cs b/Naticord/Forms/DM.cs index 529bf54..52d5e22 100644 --- a/Naticord/Forms/DM.cs +++ b/Naticord/Forms/DM.cs @@ -386,7 +386,7 @@ public void ScrollToBottom() chatBox.Document.Window.ScrollTo(0, chatBox.Document.Body.ScrollRectangle.Bottom); } } - catch (Exception ex) + catch (Exception) { // who tf cares bro it works } diff --git a/Naticord/Forms/Login.cs b/Naticord/Forms/Login.cs index a5fe2a4..7fb6305 100644 --- a/Naticord/Forms/Login.cs +++ b/Naticord/Forms/Login.cs @@ -61,7 +61,6 @@ private void PerformLoginWithPass(string email, string password) { using (var webClient = new WebClient()) { - // Set proxy if provided if (!string.IsNullOrEmpty(proxyAddress)) { webClient.Proxy = new WebProxy(proxyAddress); @@ -108,7 +107,6 @@ public void PerformLogin(string accessToken, bool isAutomated) using (var webClient = new WebClient()) { - // Set proxy if provided if (!string.IsNullOrEmpty(proxyAddress)) { webClient.Proxy = new WebProxy(proxyAddress); @@ -138,7 +136,6 @@ private void Perform2FALogin(string ticket, string code) { using (var webClient = new WebClient()) { - // Set proxy if provided if (!string.IsNullOrEmpty(proxyAddress)) { webClient.Proxy = new WebProxy(proxyAddress); diff --git a/Naticord/Forms/Server.cs b/Naticord/Forms/Server.cs index 0d56453..37b6ee3 100644 --- a/Naticord/Forms/Server.cs +++ b/Naticord/Forms/Server.cs @@ -583,7 +583,7 @@ public void ScrollToBottom() chatBox.Document.Window.ScrollTo(0, chatBox.Document.Body.ScrollRectangle.Bottom); } } - catch (Exception ex) + catch (Exception) { // who tf cares bro it works } diff --git a/Naticord/Forms/Settings.Designer.cs b/Naticord/Forms/Settings.Designer.cs index 3462bd3..f309e1e 100644 --- a/Naticord/Forms/Settings.Designer.cs +++ b/Naticord/Forms/Settings.Designer.cs @@ -44,6 +44,8 @@ private void InitializeComponent() this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.shikanokobutton = new System.Windows.Forms.Button(); + this.logoutButton = new System.Windows.Forms.Button(); + this.label8 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // label1 @@ -125,7 +127,7 @@ private void InitializeComponent() // label4 // this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(14, 101); + this.label4.Location = new System.Drawing.Point(14, 103); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(68, 13); this.label4.TabIndex = 8; @@ -134,7 +136,7 @@ private void InitializeComponent() // label5 // this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(14, 131); + this.label5.Location = new System.Drawing.Point(14, 133); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(57, 13); this.label5.TabIndex = 9; @@ -142,14 +144,14 @@ private void InitializeComponent() // // cliColorTxt // - this.cliColorTxt.Location = new System.Drawing.Point(88, 96); + this.cliColorTxt.Location = new System.Drawing.Point(88, 98); this.cliColorTxt.Name = "cliColorTxt"; this.cliColorTxt.Size = new System.Drawing.Size(148, 22); this.cliColorTxt.TabIndex = 10; // // textColorTxt // - this.textColorTxt.Location = new System.Drawing.Point(88, 127); + this.textColorTxt.Location = new System.Drawing.Point(88, 129); this.textColorTxt.Name = "textColorTxt"; this.textColorTxt.Size = new System.Drawing.Size(148, 22); this.textColorTxt.TabIndex = 11; @@ -158,7 +160,7 @@ private void InitializeComponent() // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label6.Location = new System.Drawing.Point(12, 65); + this.label6.Location = new System.Drawing.Point(12, 67); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(86, 25); this.label6.TabIndex = 12; @@ -167,7 +169,7 @@ private void InitializeComponent() // label7 // this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(14, 413); + this.label7.Location = new System.Drawing.Point(14, 450); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(66, 13); this.label7.TabIndex = 14; @@ -175,7 +177,7 @@ private void InitializeComponent() // // shikanokobutton // - this.shikanokobutton.Location = new System.Drawing.Point(160, 409); + this.shikanokobutton.Location = new System.Drawing.Point(160, 446); this.shikanokobutton.Name = "shikanokobutton"; this.shikanokobutton.Size = new System.Drawing.Size(75, 22); this.shikanokobutton.TabIndex = 13; @@ -183,11 +185,32 @@ private void InitializeComponent() this.shikanokobutton.UseVisualStyleBackColor = true; this.shikanokobutton.Click += new System.EventHandler(this.shikanokobutton_Click); // + // logoutButton + // + this.logoutButton.Location = new System.Drawing.Point(160, 405); + this.logoutButton.Name = "logoutButton"; + this.logoutButton.Size = new System.Drawing.Size(75, 22); + this.logoutButton.TabIndex = 15; + this.logoutButton.Text = "Logout"; + this.logoutButton.UseVisualStyleBackColor = true; + this.logoutButton.Click += new System.EventHandler(this.logoutButton_Click); + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(14, 410); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(103, 13); + this.label8.TabIndex = 16; + this.label8.Text = "Log out of Discord"; + // // Settings // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(248, 404); + this.ClientSize = new System.Drawing.Size(248, 438); + this.Controls.Add(this.label8); + this.Controls.Add(this.logoutButton); this.Controls.Add(this.label7); this.Controls.Add(this.shikanokobutton); this.Controls.Add(this.label6); @@ -229,5 +252,7 @@ private void InitializeComponent() private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label7; private System.Windows.Forms.Button shikanokobutton; + private System.Windows.Forms.Button logoutButton; + private System.Windows.Forms.Label label8; } } \ No newline at end of file diff --git a/Naticord/Forms/Settings.cs b/Naticord/Forms/Settings.cs index 1b6c2bb..cb39f73 100644 --- a/Naticord/Forms/Settings.cs +++ b/Naticord/Forms/Settings.cs @@ -235,6 +235,13 @@ private void shikanokobutton_Click(object sender, EventArgs e) form.Show(); } + private void logoutButton_Click(object sender, EventArgs e) + { + Properties.Settings.Default.token = null; + Properties.Settings.Default.Save(); + + Environment.Exit(0); + } } }