Ejemplo n.º 1
0
        public IRCBot(IRCClientConsole client)
        {
            Client = client;
            IRC    = client.IRC;
            Info   = client.Info;

            IRC.Message     += irc_Message;
            IRC.WhoisResult += irc_WhoisResult;
            IRC.UserJoined  += irc_UserJoined;
        }
Ejemplo n.º 2
0
        public IRCBot(IRCClientConsole client)
        {
            Client = client;
            IRC = client.IRC;
            Info = client.Info;

            IRC.Message += irc_Message;
            IRC.WhoisResult += irc_WhoisResult;
            IRC.UserJoined += irc_UserJoined;
        }
Ejemplo n.º 3
0
 public IRC(string server, int port, string nickname, string username, string realname, bool invisible)
 {
     Info = new IRCInfo()
     {
         Server = server,
         Port = port,
         Nickname = nickname,
         Username = username,
         Realname = realname,
         Invisible = invisible
     };
 }
Ejemplo n.º 4
0
        public IRCClientForm(IRCInfo info)
        {
            InitializeComponent();
            Icon = ShareXResources.Icon;
            ((ToolStripDropDownMenu)tsmiColors.DropDown).ShowImageMargin = false;

            Info = info;
            pgSettings.SelectedObject = Info;

            IRC = new IRC(Info);
            IRC.Disconnected += IRC_Disconnected;
            IRC.Output += IRC_Output;
            IRC.Message += IRC_Message;
            IRC.UserJoined += IRC_UserJoined;
        }
Ejemplo n.º 5
0
        public IRCClientForm(IRCInfo info)
        {
            InitializeComponent();
            rtbOutput.AddContextMenu();
            tsmiColors.HideImageMargin();

            tabManager = new TabManager(tcMessages);

            Info = info;
            pgSettings.SelectedObject = Info;

            IRC = new IRC(Info);
            IRC.Disconnected += IRC_Disconnected;
            IRC.Output += IRC_Output;
            IRC.ErrorOutput += IRC_ErrorOutput;
            IRC.Message += IRC_Message;
            IRC.UserJoined += IRC_UserJoined;
        }
Ejemplo n.º 6
0
        private static void Main(string[] args)
        {
            IRCInfo info;

            if (File.Exists(DefaultSettingsPath))
            {
                info = Settings.Load<IRCInfo>(DefaultSettingsPath);
            }
            else
            {
                info = new IRCInfo();
            }

            IRCClientConsole client = new IRCClientConsole(info);
            IRCBot bot = new IRCBot(client);
            bot.Start();

            Settings.Save(info, DefaultSettingsPath);
        }
Ejemplo n.º 7
0
        private static void Main(string[] args)
        {
            IRCInfo info;

            if (File.Exists(DefaultSettingsPath))
            {
                info = Settings.Load <IRCInfo>(DefaultSettingsPath);
            }
            else
            {
                info = new IRCInfo();
            }

            IRCClientConsole client = new IRCClientConsole(info);
            IRCBot           bot    = new IRCBot(client);

            bot.Start();

            Settings.Save(info, DefaultSettingsPath);
        }
Ejemplo n.º 8
0
 public IRC(IRCInfo info)
 {
     Info = info;
 }
Ejemplo n.º 9
0
 public IRC()
 {
     Info = new IRCInfo();
 }