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

            InfoContext.Initialise(conn.Config);
        }
Exemple #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");
     }
 }