aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-07 21:19:08 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-07 21:19:08 +0000
commit140e8b81453ef7d875f411f63bed4516a1f8a883 (patch)
treefda77d3c6bab85dfd8462233546355ec26a62d81
parentStore root of BBS directory in a global variable, to allow easily changing it... (diff)
Fix bug so that usernames with numbers in them are parsed correctly.
Diffstat (limited to '')
-rwxr-xr-xtelem.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/telem.lua b/telem.lua
index 7ecf1fa..fb5f5d1 100755
--- a/telem.lua
+++ b/telem.lua
@@ -53,7 +53,7 @@ function get_threads(board)
thread = {}
thread.filename = topic
thread.directory = path.join(_BBS_ROOT, "boards", board, topic)
- _, _, timestamp, thread.author = string.find(topic, "(%d+)-(%a+)")
+ _, _, timestamp, thread.author = string.find(topic, "(%d+)-(%g+)")
thread.timestamp = tonumber(timestamp)
io.input(thread.directory.."/subject")