public void NotFoundError(IIrcUser client, bool isChannel) { IrcNumericResponce Response = new IrcNumericResponce(); Response.Message = (isChannel ? "channel" : "nick") + " not found."; Response.NumericId = isChannel ? IrcNumericResponceId.ERR_NOSUCHCHANNEL : IrcNumericResponceId.ERR_NOSUCHNICK; Response.To = Name.ToUpper(); client.Write(Response); }
public void SendMessage(IrcNumericResponceId responceId, IIrcUser client, string message) { IrcNumericResponce Response = new IrcNumericResponce(); Response.Host = client.IrcServer.Hostname; Response.To = client.Nick; Response.NumericId = responceId; Response.Message = message; client.Write(Response); }
public void Write(IrcNumericResponce responce) { if (responce.Host != IrcServer.Hostname) { responce.Host = IrcServer.Hostname; } if (string.IsNullOrEmpty(responce.To)) { responce.To = Nick; } Stream.Write(responce); }
public void Write(IrcNumericResponce Response) { }
public void Write(IrcNumericResponce responce) { }
public void Write(IrcNumericResponce responce) { }
public void NotFoundError(IIrcUser client, bool isChannel) { IrcNumericResponce responce = new IrcNumericResponce(); responce.Message = (isChannel ? "channel" : "nick") + " not found."; responce.NumericId = isChannel ? IrcNumericResponceId.ERR_NOSUCHCHANNEL : IrcNumericResponceId.ERR_NOSUCHNICK; responce.To = Name.ToUpper(); client.Write(responce); }
public void SendMessage(IrcNumericResponceId responceId, IIrcUser client, string message) { IrcNumericResponce responce = new IrcNumericResponce(); responce.Host = client.IrcServer.Hostname; responce.To = client.Nick; responce.NumericId = responceId; responce.Message = message; client.Write(responce); }
public void Write(IrcNumericResponce responce) { if (responce.Host != IrcServer.Hostname) { responce.Host = IrcServer.Hostname; } if (string.IsNullOrEmpty(responce.To)) { responce.To = Nick; } Stream.Write(responce); }