public MessageReceivedEventArgs(IRCMessage m)
 {
     _m = m;
 }
 public void Send(IRCMessage message)
 {
     Send(message.RawMessage);
 }
 public MessageReceivedEventArgs(IRCMessage msg, StreamWriter sw, TcpClient tcpClient)
 {
     Writer = sw;
     Client = tcpClient;
     Message = msg;
 }
 public void OnMessageReceived(IRCMessage m)
 {
     if (MessageReceived != null)
     {
         MessageReceived(this, new MessageReceivedEventArgs(m));
     }
 }
 /// <summary>
 /// IRCサーバからのメッセージを送信します
 /// </summary>
 /// <param name="msg"></param>
 public void SendServerMessage(IRCMessage msg)
 {
     if (IsClosing)
         return;
     lock (_connections)
         foreach (ConnectionBase connection in _connections)
             connection.SendServerMessage(msg);
 }