示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="libirc.ProcessorIRC"/> class.
 /// </summary>
 /// <param name="_network">Network we parse this raw IRC data on</param>
 /// <param name="_text">Raw text data as received from ircd</param>
 /// <param name="_pong">_pong.</param>
 /// <param name="_date">Date of this message, if you specify 0 the current time will be used</param>
 /// <param name="updated">If true this text will be considered as newly obtained information</param>
 public ProcessorIRC(Network _network, string _text, ref DateTime _pong, long _date = 0, bool isBacklog = false)
 {
     _Network = _network;
     _Protocol = _network._Protocol;
     ServerLineRawText = _text;
     Date = _date;
     pong = _pong;
     IsBacklog = isBacklog;
 }
示例#2
0
 /// <summary>
 /// Creates a new network, requires name and protocol type
 /// </summary>
 /// <param name="Server">Server name</param>
 /// <param name="protocol">Protocol that own this instance</param>
 public Network(string Server, Protocol protocol)
 {
     _Protocol = protocol;
     ServerName = Server;
     Quit = Defs.DefaultQuit;
     Nickname = Defs.DefaultNick;
     UserName = Defs.DefaultNick;
     Ident = "libirc";
 }