Commit 6cdec76e2a

6cdec76e2a38ac707bca0146f735c25c84bf3c64

parent: 1ad251863e

Unsigned

Darafei Praliaskouski <me@komzpa.net> · 2026-06-30 13:05 UTC
committer: <strk@kbt.io>

fix: save server config options deterministically

Layout: unified · split

src/config.rs +4 −1
@@ -182,8 +182,11 @@ impl ConfigHandle {
182 |_weechat: &Weechat, 182 |_weechat: &Weechat,
183 config: &Conf, 183 config: &Conf,
184 section: &mut ConfigSection| { 184 section: &mut ConfigSection| {
185 let mut options = section.options();
186 options.sort_by(|a, b| a.name().cmp(&b.name()));
187
185 config.write_section(section.name()); 188 config.write_section(section.name());
186 for option in section.options() { 189 for option in options {
187 config.write_option(option); 190 config.write_option(option);
188 } 191 }
189 }, 192 },