private void SendBtn_Click(object sender, EventArgs e) { string text = ChatInputTxb.Text; if (text != "") { if (text.Substring(0, 1) == "/") { client.SendRawMessage(text.Substring(1)); } else if (currentChannel != null) { List <string> targets = new List <string>() { currentChannel.Name }; client.SendPrivateMessage(targets, text); //ChannelTabCtb.LogChatLine("Me > " + text); } ChatInputTxb.Text = ""; } }