Exemplo n.º 1
0
        public override void RegisterPlugin(IrcConnection conn)
        {
            conn.RegisterCommand("!setinfo", new Commands.SetInfoCommand(conn));
            conn.RegisterCommand("!clearinfo", new Commands.ClearInfoCommand(conn));

            InfoContext.Initialise(conn.Config);
        }
Exemplo n.º 2
0
 public static void Initialise(LumbricusConfiguration config)
 {
     if (db == null)
     {
         logger.Debug("Initialising InfoContext");
         db = new InfoContext();
     }
     else
     {
         logger.Debug("Skipping database initialisation; already connected");
     }
 }