summaryrefslogtreecommitdiff
path: root/ratatox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-16 17:30:23 +0100
committersin <sin@2f30.org>2014-09-16 17:30:23 +0100
commit6233494e4c5941e8a7a54c57d1baad1fdcfafdf6 (patch)
tree1424cf50074ae9965ae469d5ea095d9e9f335e9f /ratatox.c
parent83a2721946aade9f6fcf848e8acc99f3109d662c (diff)
Catch TOX_FAERR_{BADCHECKSUM,SETNEWNOSPAM}
Diffstat (limited to 'ratatox.c')
-rw-r--r--ratatox.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ratatox.c b/ratatox.c
index 9ddbd45..64575d5 100644
--- a/ratatox.c
+++ b/ratatox.c
@@ -951,6 +951,12 @@ again:
case TOX_FAERR_UNKNOWN:
fprintf(stderr, "Unknown error while sending your request\n");
break;
+ case TOX_FAERR_BADCHECKSUM:
+ fprintf(stderr, "Bad checksum while verifying address\n");
+ break;
+ case TOX_FAERR_SETNEWNOSPAM:
+ fprintf(stderr, "Friend already added but nospam doesn't match\n");
+ break;
default:
printout("Friend request sent\n");
break;