public void OnRegistered() { try { connection.Sender.Join("#test"); // connection.Sender.PublicMessage("#test", Console.ReadLine()); string content = "", line = ""; while ((line = Console.ReadLine()) != "") { content += line + "\n"; } connection.Sender.PublicMessage("#test", content); }