internal string ReadHostmask(string message) { if (message.StartsWith(":")) { string[] prefixParts = message.SplitOnce(" "); HostMask = new HostMask(prefixParts[0]); message = prefixParts[1]; } return message; }
private void SendPong(IrcConnection connection, HostMask hostMask) { if (hostMask == null) { connection.SendCommand(PingReplyCommand); } else { connection.SendCommand($"{PingReplyCommand} {hostMask.Hostname}"); } }