Check for nil
parent
35f9494f3f
commit
8b0965b6e4
|
@ -29,6 +29,9 @@ function matrix.send_message(http_api, body, formatted_body, callback, txnId)
|
|||
end
|
||||
|
||||
function matrix.send(http_api, strong_text, small_text, callback)
|
||||
small_text = small_text or ""
|
||||
strong_text = strong_text or ""
|
||||
|
||||
return matrix.send_message(
|
||||
http_api, "**" .. strong_text .. "** " .. small_text,
|
||||
"<strong>" .. strong_text .. "</strong> " .. small_text,
|
||||
|
|
Loading…
Reference in New Issue