From 6a7643664dcf0c3cd87bc2d58e05b413cbc1851e Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 22 Sep 2014 13:06:55 +0100 Subject: Inform the user if encryption is enabled but the datafile is not encrypted --- ratox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index 77e14c9..69ff979 100644 --- a/ratox.c +++ b/ratox.c @@ -607,8 +607,11 @@ dataload(void) } if (encryptsave == 1) { - if (tox_is_data_encrypted(data) == 0) + if (tox_is_data_encrypted(data) == 0) { + printout("%s is not encrypted, disabling encryption\n", + DATAFILE); encryptsave = 0; + } } else { if (tox_is_data_encrypted(data) == 1) { fprintf(stderr, "Unable to load %s, it is encrypted\n", -- cgit v1.2.3