private void LogAndSend(TextWriter writer, string command) { OnIrcSend(command); writer.WriteLine(command); }