From 1b0f033bfbcf31315775520fbb1061b26948d710 Mon Sep 17 00:00:00 2001 From: DebXWoody Date: Sat, 16 May 2020 18:18:33 +0200 Subject: [PATCH] Message delay --- src/mode/message.c | 1 + src/mode/openpgp.c | 1 + src/mode/pgp.c | 1 + src/xmppc.h | 1 + 4 files changed, 4 insertions(+) diff --git a/src/mode/message.c b/src/mode/message.c index 51cdd77f0f4f07174545573f0db884e80bc4cc95..3c621fc8e78ae494cbf1b774bc3c1326b9d1c557 100644 --- a/src/mode/message.c +++ b/src/mode/message.c @@ -51,6 +51,7 @@ void message_execute_command(xmppc_t *xmppc, int argc, char *argv[]) { } else { logError(xmppc, "Befehl unbekannt"); } + sleep(10); xmpp_disconnect(xmppc->conn); } diff --git a/src/mode/openpgp.c b/src/mode/openpgp.c index c200c03314e1a5251fe82e2911eda4baaa203eaa..efece9ca2721a95de5153bc5a8e552628066f865 100644 --- a/src/mode/openpgp.c +++ b/src/mode/openpgp.c @@ -63,6 +63,7 @@ void openpgp_execute_command(xmppc_t *xmppc, int argc, char *argv[]) { logError(xmppc, "Unbekanner Befehl: %s\n", argv[0]); } } + sleep(10); xmpp_disconnect(xmppc->conn); } diff --git a/src/mode/pgp.c b/src/mode/pgp.c index 105a55009e4b07735eb6a04ba597a5ca1a296f77..26ac2521a2c24e30ff7e1a032c625b869df94e00 100644 --- a/src/mode/pgp.c +++ b/src/mode/pgp.c @@ -65,6 +65,7 @@ void pgp_execute_command(xmppc_t *xmppc, int argc, char *argv[]) { logError(xmppc, "Unbekanner Befehl: %s\n", argv[0]); } } + sleep(10); xmpp_disconnect(xmppc->conn); } diff --git a/src/xmppc.h b/src/xmppc.h index 2ddd3c701bcd70d72b035f073e70bd716a56e1c3..c9bc403df96bc578bca4889a01a3002417971270 100644 --- a/src/xmppc.h +++ b/src/xmppc.h @@ -48,6 +48,7 @@ #include #include #include +#include #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_GREEN "\x1b[32m"