# HG changeset patch # User Kim Alvefur # Date 1599835708 -7200 # Node ID ecc6ad0573832cd726521418186a1db4ca2f5515 # Parent 4e7ff27c212c1ffc5c5f8718c70af168b81c271b mod_lastlog2: Fix reporting of IP address (thanks Ge0rG) diff -r 4e7ff27c212c -r ecc6ad057383 mod_lastlog2/mod_lastlog2.lua --- a/mod_lastlog2/mod_lastlog2.lua Fri Sep 11 16:45:47 2020 +0200 +++ b/mod_lastlog2/mod_lastlog2.lua Fri Sep 11 16:48:28 2020 +0200 @@ -60,8 +60,8 @@ for event, data in pairs(lastlog) do print(("Last %s: %s"):format(event, data.timestamp and os.date("%Y-%m-%d %H:%M:%S", data.timestamp) or "")); - if lastlog.ip then - print("IP address: "..lastlog.ip); + if data.ip then + print("IP address: "..data.ip); end end else