diff options
Diffstat (limited to 'rhnop-server/qlistener.lua')
-rw-r--r-- | rhnop-server/qlistener.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rhnop-server/qlistener.lua b/rhnop-server/qlistener.lua index dcea7bb..6d18140 100644 --- a/rhnop-server/qlistener.lua +++ b/rhnop-server/qlistener.lua @@ -49,6 +49,8 @@ function handle_message(msg) if not timestamp or not nowcart or not nowlen or not nextcart or not nextlen then io.stderr:write("ignoring malformed message\n") else + nowcart = tonumber(nowcart) + nowlen = tonumber(nowlen) if last_cart ~= nowcart and nowcart >= conf.music_carts_lo and nowcart <= conf.music_carts_hi and nowlen > 0 then last_cart = nowcart handle_now(timestamp, nowcart, nowlen) @@ -92,4 +94,4 @@ function main_loop() end handle_message(msg) end -end
\ No newline at end of file +end |