Rename all plugin command configs to .dist#505
Open
tsautier wants to merge 3 commits into
Open
Conversation
tsautier
force-pushed
the
fix/issue-244
branch
2 times, most recently
from
January 14, 2026 19:39
0f49372 to
66d9aaf
Compare
tsautier
force-pushed
the
fix/issue-244
branch
from
January 14, 2026 19:55
66d9aaf to
f62b32b
Compare
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Command configuration files (
core.conf,sitebot.conf, etc.) were distributed as.conffiles directly. When users upgraded DrFTPD, their custom configurations were overwritten by the new default files.Solution
Rename all command config files to
.conf.distand update the config loader to use.distfiles as fallback when the user's.conffile doesn't exist.Changes Made
1. Renamed Config Files (All Plugins)
All command config files in
src/main/resources/master/config/commands/{ftp,irc}/were renamed to.conf.dist:core.conf,sitebot.conf,archive.conf,autonuke.conf,dupecheck.conf,find.conf,imdb.conf,jobs.conf,mirror.conf,request.conf,speedtest.net.conf,tvmaze.conf,zipscript.conf2. Updated Config Loader
Modified
GlobalContext.loadCommandConfig()to:.confAND.conf.distfiles.conf.distfile, check if the corresponding.confexists.conf.distif.confis missing (user config takes priority)Upgrade Behavior
.conf.distis loaded (user has no.conf).conf.confis loaded,.conf.distignored.conf.distis updated, user's.confuntouchedFixes: #244