From 5608f21aae6a79bf1afdba42fd77675afbceb261 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Fri, 8 Sep 2017 00:02:18 -0400 Subject: [PATCH] Fixes Nickname auth in control panel --- TGControlPanel/ChatPage.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/TGControlPanel/ChatPage.cs b/TGControlPanel/ChatPage.cs index 763afa30c4..74eee5244d 100644 --- a/TGControlPanel/ChatPage.cs +++ b/TGControlPanel/ChatPage.cs @@ -199,12 +199,13 @@ namespace TGControlPanel if (res == null) { - wip.AdminChannels = new List(AdminChannelsTextbox.Text.Split('\n')); - wip.WatchdogChannels = new List(WDChannelsTextbox.Text.Split('\n')); - wip.DevChannels = new List(DevChannelsTextbox.Text.Split('\n')); - wip.GameChannels = new List(GameChannelsTextbox.Text.Split('\n')); - wip.AdminList = new List(ChatAdminsTextBox.Text.Split('\n')); + wip.AdminChannels = new List(AdminChannelsTextbox.Text.Split(Environment.NewLine.ToCharArray())); + wip.WatchdogChannels = new List(WDChannelsTextbox.Text.Split(Environment.NewLine.ToCharArray())); + wip.DevChannels = new List(DevChannelsTextbox.Text.Split(Environment.NewLine.ToCharArray())); + wip.GameChannels = new List(GameChannelsTextbox.Text.Split(Environment.NewLine.ToCharArray())); + wip.AdminList = new List(ChatAdminsTextBox.Text.Split(Environment.NewLine.ToCharArray())); wip.Enabled = ChatEnabledCheckbox.Checked; + wip.AdminsAreSpecial = AdminModeSpecial.Checked; res = Server.GetComponent().SetProviderInfo(wip); }