|
419 | 419 | function configuration_changed_cb(data, option, value)
|
420 | 420 | if option == 'plugins.var.lua.matrix.timeout' then
|
421 | 421 | timeout = tonumber(value)*1000
|
422 |
| - elseif option == 'plugins.var.lua.matrix.debug' then |
| 422 | + elseif option == 'plugins.var.lua.matrix.debug' then |
423 | 423 | if value == 'on' then
|
424 | 424 | DEBUG = true
|
425 | 425 | w.print('', SCRIPT_NAME..': debugging messages enabled')
|
@@ -2167,6 +2167,7 @@ function Room:delNick(id)
|
2167 | 2167 | end
|
2168 | 2168 |
|
2169 | 2169 | function Room:UpdateLine(id, message)
|
| 2170 | + if not id then return end |
2170 | 2171 | local lines = w.hdata_pointer(w.hdata_get('buffer'), self.buffer, 'own_lines')
|
2171 | 2172 | if lines == '' then return end
|
2172 | 2173 | local line = w.hdata_pointer(w.hdata_get('lines'), lines, 'last_line')
|
@@ -2716,7 +2717,7 @@ function Room:ParseChunk(chunk, backlog, chunktype)
|
2716 | 2717 | local result = self:UpdateLine(redact_id, w.color'darkgray'..'(redacted)')
|
2717 | 2718 | if not result and not backlog then
|
2718 | 2719 | -- backlog doesn't send original message
|
2719 |
| - perr 'Could not find message to redact :(' |
| 2720 | + perr(('Could not find message to redact :(. Redaction ID is: %s'):format(redact_id)) |
2720 | 2721 | end
|
2721 | 2722 | elseif chunk['type'] == 'm.room.history_visibility' then
|
2722 | 2723 | self.history_visibility = chunk.content.history_visibility
|
|
0 commit comments