Пример #1
0
 public LoginLogger(BasicCommunication.Login MyLogin, Logger MyLogger, TCPWrapper MyTCPWrapper, MySqlManager MyMySqlManager)
 {
     TheLogger                        = MyLogger;
     TheLogin                         = MyLogin;
     TheTCPWrapper                    = MyTCPWrapper;
     TheMySqlManager                  = MyMySqlManager;
     this.TheLogin.Got_LOG_IN_OK     += new BasicCommunication.Login.Got_LOG_IN_OK_EventHandler(LOG_IN_OK);
     this.TheLogin.Got_LOG_IN_NOT_OK += new BasicCommunication.Login.Got_LOG_IN_NOT_OK_EventHandler(LOG_IN_NOT_OK);
 }
Пример #2
0
 public LoginLogger(BasicCommunication.Login MyLogin, Logger MyLogger, TCPWrapper MyTCPWrapper, MySqlManager MyMySqlManager)
 {
     TheLogger = MyLogger;
     TheLogin = MyLogin;
     TheTCPWrapper = MyTCPWrapper;
             TheMySqlManager = MyMySqlManager;
     this.TheLogin.Got_LOG_IN_OK += new BasicCommunication.Login.Got_LOG_IN_OK_EventHandler(LOG_IN_OK);
     this.TheLogin.Got_LOG_IN_NOT_OK += new BasicCommunication.Login.Got_LOG_IN_NOT_OK_EventHandler(LOG_IN_NOT_OK);
 }
Пример #3
0
        public BuddyHandler(TCPWrapper MyTCPWrapper, BasicCommunication.MessageParser MyMessageParser, AdvHelpCommandHandler MyAdvHelpCommandHandler, MySqlManager MyMySqlManager, BasicCommunication.Login MyLogin)
        {
            this.TheTCPWrapper = MyTCPWrapper;
            this.TheMessageParser = MyMessageParser;
            this.TheAdvHelpCommandHandler = MyAdvHelpCommandHandler;
            this.TheMySqlManager = MyMySqlManager;
            this.TheTCPWrapper.GotCommand += new TCPWrapper.GotCommandEventHandler(OnGotCommand);
            this.TheMessageParser.Got_LocationInfo += new cs_elbot.BasicCommunication.MessageParser.Got_LocationInfo_EventHandler(TheMessageParser_Got_LocationInfo);
            TheLogin = MyLogin;
            this.TheLogin.Got_LOG_IN_OK +=new cs_elbot.BasicCommunication.Login.Got_LOG_IN_OK_EventHandler(LOG_IN_OK);
            this.TheTCPWrapper.GotConnected += new TCPWrapper.GotConnectedEventHandler(TheTCPWrapper_GotConnected);

            //this.CommandIsDisabled = MyMySqlManager.CheckIfCommandIsDisabled("#online",Settings.botid);

            //if (CommandIsDisabled == false)
            {
                TheAdvHelpCommandHandler.AddCommand("#online - lists online buddies");
                TheMessageParser.Got_PM += new BasicCommunication.MessageParser.Got_PM_EventHandler(OnGotPM);
            }
        }
Пример #4
0
        public BuddyHandler(TCPWrapper MyTCPWrapper, BasicCommunication.MessageParser MyMessageParser, AdvHelpCommandHandler MyAdvHelpCommandHandler, MySqlManager MyMySqlManager, BasicCommunication.Login MyLogin)
        {
            this.TheTCPWrapper                      = MyTCPWrapper;
            this.TheMessageParser                   = MyMessageParser;
            this.TheAdvHelpCommandHandler           = MyAdvHelpCommandHandler;
            this.TheMySqlManager                    = MyMySqlManager;
            this.TheTCPWrapper.GotCommand          += new TCPWrapper.GotCommandEventHandler(OnGotCommand);
            this.TheMessageParser.Got_LocationInfo += new cs_elbot.BasicCommunication.MessageParser.Got_LocationInfo_EventHandler(TheMessageParser_Got_LocationInfo);
            TheLogin = MyLogin;
            this.TheLogin.Got_LOG_IN_OK     += new cs_elbot.BasicCommunication.Login.Got_LOG_IN_OK_EventHandler(LOG_IN_OK);
            this.TheTCPWrapper.GotConnected += new TCPWrapper.GotConnectedEventHandler(TheTCPWrapper_GotConnected);


            //this.CommandIsDisabled = MyMySqlManager.CheckIfCommandIsDisabled("#online",Settings.botid);

            //if (CommandIsDisabled == false)
            {
                TheAdvHelpCommandHandler.AddCommand("#online - lists online buddies");
                TheMessageParser.Got_PM += new BasicCommunication.MessageParser.Got_PM_EventHandler(OnGotPM);
            }
        }