# HG changeset patch # User Kim Alvefur # Date 1682453522 -7200 # Node ID d9d52ad8c1aeacdbad5155a34eb176ef984f82fd # Parent 1a58a11407ac0fd0d99b204067269dcdaf3414f5 mod_client_management: Fix type confusion client_selector : string, not some sort of table? diff -r 1a58a11407ac -r d9d52ad8c1ae mod_client_management/mod_client_management.lua --- a/mod_client_management/mod_client_management.lua Tue Apr 25 22:06:08 2023 +0200 +++ b/mod_client_management/mod_client_management.lua Tue Apr 25 22:12:02 2023 +0200 @@ -277,8 +277,8 @@ end function revoke_client_access(username, client_selector) - if client_selector.id then - local c_type, c_id = client_selector.id:match("^(%w+)/(.+)$"); + if client_selector then + local c_type, c_id = client_selector:match("^(%w+)/(.+)$"); if c_type == "client" then local client = client_store:get_key(username, c_id); if not client then