Compare commits

...

3 Commits

Author SHA1 Message Date
5062c9dd15 Trying again 2026-04-20 12:20:25 -04:00
f844be04b0 make_unimplemented_handler 2026-04-20 12:13:51 -04:00
eb8fff42bf One more 2026-04-20 12:08:30 -04:00

View File

@@ -228,6 +228,7 @@ function Room:get_alias_or_id()
end
end
local make_unimplemented_handler
local make_unimplemented_handler = function (self, event)
local env_value = os.getenv("MATRIX_CLIENT_LOG_UNHANDLED_EVENTS")
if env_value and #env_value > 0 and env_value ~= "0" then
@@ -239,7 +240,7 @@ local make_unimplemented_handler = function (self, event)
end
else
local function handler(self, event) end
local make_unimplemented_handler = function (self, event)
make_unimplemented_handler = function (self, event)
self:_log("no handler for '%s' events (this warning is shown only once)", event.type)
return handler
end