summaryrefslogtreecommitdiff
path: root/src/map/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/log.c')
-rw-r--r--src/map/log.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/log.c b/src/map/log.c
index 85cdac84a..5676730dc 100644
--- a/src/map/log.c
+++ b/src/map/log.c
@@ -486,10 +486,13 @@ static void log_chat(e_log_chat_type type, int type_id, int src_charid, int src_
if (dst_charname == NULL)
dst_charname = "";
- // Hash the message, we don't care with it
+ // Hash the message, we don't care with it (FIXME)
+ //unsigned char obuf[SHA256_DIGEST_LENGTH];
+ //SHA256((const unsigned char*)(message), strlen(message), obuf);
char *md5str;
- md5str = (char *)aMalloc((32+1)*sizeof(char));
- md5->string(message, md5str);
+ md5str = (char *)aMalloc((64+1)*sizeof(char));
+ md5->sha256(message, md5str);
+ //md5str = (char *)obuf;
logs->chat_sub(type,type_id,src_charid,src_accid,mapname,x,y,dst_charname,md5str);
}