Software /
code /
prosody
Comparison
util/hashes.lua @ 155:8c9a9f6f6455
Show error when no MD5 lib available
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 24 Oct 2008 14:46:22 +0100 |
parent | 148:4c0dcd245d34 |
child | 194:4ea1ec218976 |
comparison
equal
deleted
inserted
replaced
154:1fee9396ca2f | 155:8c9a9f6f6455 |
---|---|
1 | 1 |
2 local softreq = function (...) return select(2, pcall(require, ...)); end | 2 local softreq = function (...) return select(2, pcall(require, ...)); end |
3 local error = error; | |
3 | 4 |
4 module "hashes" | 5 module "hashes" |
5 | 6 |
6 local md5 = softreq("md5"); | 7 local md5 = softreq("md5"); |
7 if md5 then | 8 if md5 then |