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 {
352 ); 352 );
353 353
354 server_ref.settings.borrow_mut().username = 354 server_ref.settings.borrow_mut().username =
355 option.value().to_string(); 355 Weechat::eval_string_expression(&option.value())
356 .expect("Can't evaluate username");
356 }); 357 });
357 358
358 server_section 359 server_section
@@ -370,7 +371,8 @@ impl MatrixServer {
370 ); 371 );
371 372
372 server_ref.settings.borrow_mut().password = 373 server_ref.settings.borrow_mut().password =
373 option.value().to_string(); 374 Weechat::eval_string_expression(&option.value())
375 .expect("Can't evaluate password");
374 }); 376 });
375 377
376 server_section 378 server_section