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