Пример #1
0
 public void Connect(string host, int port, bool ssl = true)
 {
     Host = host;
     Port = port;
     SSL = ssl;
     Client = new IrcClient ();
     Client.Disconnected += _Connect;
     Client.ChannelMessage += (message, sender) => {
         if (message.StartsWith ("$")) {
             message = message.Substring (1);
             ActionPool.Instance.ProcessCommand (this, message);
         }
     };
     _Connect (this, EventArgs.Empty);
 }
Пример #2
0
 public IrcUpstream()
 {
     Client  = new IrcClient();
     Actions = new List <HostAction> ();
 }
Пример #3
0
 public IrcUpstream()
 {
     Client = new IrcClient ();
     Actions = new List<HostAction> ();
 }