# HG changeset patch # User Kim Alvefur # Date 1493218498 -7200 # Node ID b87e281a7d59ec64e3631fb11aba0c6f2f32a390 # Parent 6ddddfe05a745ba9684f1a40543147036e68f228 mod_component: Use typed config API diff -r 6ddddfe05a74 -r b87e281a7d59 plugins/mod_component.lua --- a/plugins/mod_component.lua Wed Apr 26 11:46:22 2017 +0200 +++ b/plugins/mod_component.lua Wed Apr 26 16:54:58 2017 +0200 @@ -66,7 +66,7 @@ return true; end - local secret = module:get_option("component_secret"); + local secret = module:get_option_string("component_secret"); if not secret then (session.log or log)("warn", "Component attempted to identify as %s, but component_secret is not set", session.host); session:close("not-authorized");