public static void InitAdminCommands() { CommandPool.RegisterCommand(new GenericCommand("add", Commands.AddChannel, false, "join")); CommandPool.RegisterCommand(new GenericCommand("commands", Commands.CommandList, true, null, false)); CommandPool.RegisterCommand(new GenericCommand("configure", Commands.Configure, false, "admin")); CommandPool.RegisterCommand(new GenericCommand("channellist", Commands.ChannelList)); CommandPool.RegisterCommand(new GenericCommand("drop", Commands.Drop, false)); CommandPool.RegisterCommand(new GenericCommand("help", Commands.Help)); CommandPool.RegisterCommand(new GenericCommand("join", Commands.AddChannel, false, "join")); CommandPool.RegisterCommand(new GenericCommand("language", Commands.Language, true, "admin")); CommandPool.RegisterCommand(new GenericCommand("ignore", Commands.Ignore, true, "root")); CommandPool.RegisterCommand(new GenericCommand("info", Commands.Info)); CommandPool.RegisterCommand(new GenericCommand("instance", Commands.Instance, false, "root")); CommandPool.RegisterCommand(new GenericCommand("part", Commands.Part, false)); CommandPool.RegisterCommand(new GenericCommand("reload", Commands.Reload, true, "admin")); CommandPool.RegisterCommand(new GenericCommand("restart", Commands.Restart, true, "root")); CommandPool.RegisterCommand(new GenericCommand("restrict", Commands.Restrict, true, "root")); CommandPool.RegisterCommand(new GenericCommand("reauth", Commands.Reauth, false, "root")); CommandPool.RegisterCommand(new GenericCommand("traffic-off", Commands.TrafficOff, true, "root")); CommandPool.RegisterCommand(new GenericCommand("traffic-on", Commands.TrafficOn, true, "root")); CommandPool.RegisterCommand(new GenericCommand("trustadd", Commands.TrustAdd, false, "trustadd")); CommandPool.RegisterCommand(new GenericCommand("trustdel", Commands.TrustDel, false, "trustdel")); CommandPool.RegisterCommand(new GenericCommand("trusted", Commands.TrustedList, false)); CommandPool.RegisterCommand(new GenericCommand("suppress-on", Commands.SuppressOn, false, "suppress")); CommandPool.RegisterCommand(new GenericCommand("suppress-off", Commands.SuppressOff, false, "unsuppress")); CommandPool.RegisterCommand(new GenericCommand("system-rm", Commands.SystemUnload, true, "root")); CommandPool.RegisterCommand(new GenericCommand("verbosity--", Commands.VerbosityDown, true, "root")); CommandPool.RegisterCommand(new GenericCommand("verbosity++", Commands.VerbosityUp, true, "root")); CommandPool.RegisterCommand(new GenericCommand("whoami", Commands.Whoami)); CommandPool.RegisterCommand(new GenericCommand("channel-info", Commands.ChannelOverview)); CommandPool.RegisterCommand(new GenericCommand("changepass", Commands.ChangePass, false, "admin")); }
protected void RegisterCommand(GenericCommand command) { command.Module = this.Name; CommandPool.RegisterCommand(command); }