Motodai (トーク | 投稿記録)
編集の要約なし
Motodai (トーク | 投稿記録)
影響の少ないと思われる 17live , pococha で
 
(同じ利用者による、間の1版が非表示)
15行目: 15行目:
     dataStore['17liveアカウント'] = t_name
     dataStore['17liveアカウント'] = t_name


     local result = mw.smw.set( dataStore )
     local ok, result = pcall(mw.smw.set, dataStore )


     if result == true then
if not ok then
        -- everything ok
return '<span class="error">SMW Lua error: ' .. tostring(result) .. '</span>'
    else
end
     if result ~= true then
         -- error message to be found in result.error
         -- error message to be found in result.error
         return '<span class="error">エラー: ' .. tostring(result.error) .. '</span>'
         return '<span class="error">SMW set error: ' .. tostring(result.error) .. '</span>'
     end
     end
end
end