diff --git a/changelog.md b/changelog.md index 0061419..de5a058 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +### 2.0.5 +### Fixed +- Fix random crashes from krist mining + ### 2.0.4 ### Fixed - Fix Discord Webhooks diff --git a/src/main.lua b/src/main.lua index 7d207b4..8a66131 100644 --- a/src/main.lua +++ b/src/main.lua @@ -3,7 +3,7 @@ --#include "src/macros.lua" -local versionTag = "v2.0.4" +local versionTag = "v2.0.5" local args = {...} local layoutMode = args[1] == "--layout" or args[1] == "-l" diff --git a/src/sections/jua.lua b/src/sections/jua.lua index 36bbded..4e25e9a 100644 --- a/src/sections/jua.lua +++ b/src/sections/jua.lua @@ -41,7 +41,10 @@ local function handleTransaction(data) if tx.to == config.host then if tx.metadata then - local meta = kapi.parseMeta(tx.metadata) + local meta = tx.metadata + if type(meta) == "string" then + meta = kapi.parseMeta(meta) + end if meta.domain == config.name then logger.info("Received " .. tx.value .. "kst from " .. tx.from .. " (Meta: " .. tx.metadata .. ")")