diff options
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |