Commit 05daf6deb2

05daf6deb23571440572e1395875dc3de74b3cd3

parent: a846e76b7a

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2021-06-01 18:31 UTC

server: Evaluate the user/password config options

Layout: unified · split

src/server.rs +4 −2
@@ -352,7 +352,8 @@ impl MatrixServer {
352352 );
353353
354354 server_ref.settings.borrow_mut().username =
355 option.value().to_string();
355 Weechat::eval_string_expression(&option.value())
356 .expect("Can't evaluate username");
356357 });
357358
358359 server_section
@@ -370,7 +371,8 @@ impl MatrixServer {
370371 );
371372
372373 server_ref.settings.borrow_mut().password =
373 option.value().to_string();
374 Weechat::eval_string_expression(&option.value())
375 .expect("Can't evaluate password");
374376 });
375377
376378 server_section