diff --git a/weechat-matrix.py b/weechat-matrix.py index be18175..3a0f221 100644 --- a/weechat-matrix.py +++ b/weechat-matrix.py @@ -1441,7 +1441,8 @@ def matrix_config_change_cb(data, option): if option_name == "redactions": GLOBAL_OPTIONS.redaction_type = RedactType(W.config_integer(option)) elif option_name == "server_buffer": - GLOBAL_OPTIONS.look_server_buf = W.config_integer(option) + GLOBAL_OPTIONS.look_server_buf = ServerBufferType( + W.config_integer(option)) return 1