Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 public void Write(IrcNumericResponce Response)
 {
 }
Esempio n. 5
0
 public void Write(IrcNumericResponce responce)
 {
 }
Esempio n. 6
0
 public void Write(IrcNumericResponce responce)
 {
 }
Esempio n. 7
0
 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);
 }
Esempio n. 8
0
 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);
 }
Esempio n. 9
0
 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);
 }