Compare commits
3 Commits
d94c1342b0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
5062c9dd15
|
|||
|
f844be04b0
|
|||
|
eb8fff42bf
|
@@ -228,6 +228,7 @@ function Room:get_alias_or_id()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local make_unimplemented_handler
|
||||||
local make_unimplemented_handler = function (self, event)
|
local make_unimplemented_handler = function (self, event)
|
||||||
local env_value = os.getenv("MATRIX_CLIENT_LOG_UNHANDLED_EVENTS")
|
local env_value = os.getenv("MATRIX_CLIENT_LOG_UNHANDLED_EVENTS")
|
||||||
if env_value and #env_value > 0 and env_value ~= "0" then
|
if env_value and #env_value > 0 and env_value ~= "0" then
|
||||||
@@ -239,7 +240,7 @@ local make_unimplemented_handler = function (self, event)
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
local function handler(self, event) end
|
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)
|
self:_log("no handler for '%s' events (this warning is shown only once)", event.type)
|
||||||
return handler
|
return handler
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user