From 3f2559adebcd8ceb71bc344f134ba7f36942ad7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Sun, 28 Jan 2018 11:44:57 +0100 Subject: [PATCH] Evaluate the string for the server password. This enables us to use weechat secured data feature. --- matrix/server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/matrix/server.py b/matrix/server.py index 953f245..d7544e4 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -100,7 +100,8 @@ class MatrixServer: ), Option( 'password', 'string', '', 0, 0, '', - "Password for server" + ("Password for server (note: content is evaluated, see /help " + "eval)") ), Option( 'device_name', 'string', '', 0, 0, 'Weechat Matrix', @@ -148,7 +149,7 @@ class MatrixServer: self.access_token = "" elif option_name == "password": value = W.config_string(option) - self.password = value + self.password = W.string_eval_expression(value, {}, {}, {}) elif option_name == "device_name": value = W.config_string(option) self.device_name = value