Merge pull request #8 from Cyberboss/Cyberboss-patch-1

Makes chat bot set nick before joining IRC
This commit is contained in:
Leo
2017-06-05 09:40:57 -03:00
committed by GitHub
+4 -4
View File
@@ -131,10 +131,6 @@ namespace TGControlPanel
private void ChatApplyButton_Click(object sender, EventArgs e)
{
var Chat = Server.GetComponent<ITGChat>();
Chat.SetChannels(SplitByLine(ChatChannelsTextBox), AdminChannelText.Text);
Chat.SetAdmins(SplitByLine(ChatAdminsTextBox));
Chat.SetEnabled(ChatEnabledCheckbox.Checked);
string res;
switch (modifyingProvider)
@@ -158,6 +154,10 @@ namespace TGControlPanel
if (res != null)
MessageBox.Show(res);
Chat.SetChannels(SplitByLine(ChatChannelsTextBox), AdminChannelText.Text);
Chat.SetAdmins(SplitByLine(ChatAdminsTextBox));
Chat.SetEnabled(ChatEnabledCheckbox.Checked);
LoadChatPage();
}