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); }
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); } }
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); } }