Exemplo n.º 1
0
        public void Start(string channel_name)
        {
            this.ChannelName = channel_name;
            if (!this.ChannelName.StartsWith("#"))
            {
                this.ChannelName = '#' + this.ChannelName;
            }

            var appSettings = ConfigurationManager.AppSettings;

            ircClient            = new IRC.Client();
            ircClient.Connected += ircClient_Connected;
            ircClient.Connect(appSettings["irc-server"], int.Parse(appSettings["irc-port"]), appSettings["irc-user"], appSettings["irc-password"]);
        }
Exemplo n.º 2
0
 public void Stop()
 {
     ircClient.Dispose();
     ircClient = null;
 }