From 8aa0a2e84b5e9c2002d0d2c6922f6ff107b7f683 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 26 Feb 2022 17:00:51 +0100 Subject: [PATCH] Fixed user metric computation for Minetest. --- .../statoolinfos/metrics/minetest/MinetestLog.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/metrics/minetest/MinetestLog.java b/src/fr/devinsy/statoolinfos/metrics/minetest/MinetestLog.java index b360a93..fa351fa 100644 --- a/src/fr/devinsy/statoolinfos/metrics/minetest/MinetestLog.java +++ b/src/fr/devinsy/statoolinfos/metrics/minetest/MinetestLog.java @@ -123,7 +123,15 @@ public class MinetestLog } else { - result = null; + matcher = JOIN_PATTERN.matcher(this.message); + if (matcher.matches()) + { + result = matcher.group("nickname"); + } + else + { + result = null; + } } //