github.lua: description fix

This commit is contained in:
Akamaru 2016-10-23 22:12:23 +02:00
parent aba8b43a76
commit bb4cb04533
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,11 @@ end
function github:send_github_data(data)
if not data.owner then return nil end
local name = '<b>'..data.name..'</b>'
local description = '<i>'..data.description..'</i>'
if data.description then
description = '<i>'..data.description..'</i>'
else
description = ''
end
local owner = data.owner.login
local clone_url = data.clone_url
if data.language == nil or data.language == "" then