From 6cb53646050d797a68569596690d6edb02ffdd37 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 22 Oct 2013 18:31:54 -0200 Subject: [PATCH] disable printf of dm's --- src/twister.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/twister.cpp b/src/twister.cpp index f4b64138..9c4eb700 100644 --- a/src/twister.cpp +++ b/src/twister.cpp @@ -585,9 +585,11 @@ bool processReceivedDM(lazy_entry const* post) } else { std::string textOut; if( key.Decrypt(sec, textOut) ) { + /* this printf is good for debug, but bad for security. printf("Received DM for user '%s' text = '%s'\n", item.second.username.c_str(), textOut.c_str()); + */ std::string n = post->dict_find_string_value("n");