mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
let the past begone in cvs land. welcome to igit igit!
This commit is contained in:
commit
4e601cf1c7
509 changed files with 77963 additions and 0 deletions
20
place/indigestion.c
Normal file
20
place/indigestion.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include <place.gen>
|
||||
|
||||
msg(source, mc, data, mapping vars) {
|
||||
int rc = ::msg(source, mc, data, vars);
|
||||
if (abbrev("_message", mc) && stringp(data)) {
|
||||
#if __EFUN_DEFINED__(crypt)
|
||||
castmsg(ME, "_notice_digest_crypt",
|
||||
"\tcrypt: [_text_crypt]", ([ "_text_crypt" : md5(data) ]) );
|
||||
#endif
|
||||
#if __EFUN_DEFINED__(md5)
|
||||
castmsg(ME, "_notice_digest_md5",
|
||||
"\t MD5: [_text_md5]", ([ "_text_md5" : md5(data) ]) );
|
||||
#endif
|
||||
#if __EFUN_DEFINED__(sha1)
|
||||
castmsg(ME, "_notice_digest_sha1",
|
||||
"\t SHA1: [_text_sha1]", ([ "_text_sha1" : sha1(data) ]) );
|
||||
#endif
|
||||
}
|
||||
return rc;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue