aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody3
1 files changed, 3 insertions, 0 deletions
diff --git a/prosody b/prosody
index 45d8836b..04ef9e31 100755
--- a/prosody
+++ b/prosody
@@ -92,6 +92,9 @@ local version_file = io.open((CFG_SOURCEDIR or ".").."/prosody.version");
if version_file then
prosody.version = version_file:read("*a"):gsub("%s*$", "");
version_file:close();
+ if #prosody.version == 12 and prosody.version:match("^[a-f0-9]+$") then
+ prosody.version = "hg:"..prosody.version;
+ end
else
prosody.version = "unknown";
end