mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
Merge pull request #8 from Cyberboss/Cyberboss-patch-1
Makes chat bot set nick before joining IRC
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user