Message delay
This commit is contained in:
parent
854fa1faf9
commit
1b0f033bfb
@ -51,6 +51,7 @@ void message_execute_command(xmppc_t *xmppc, int argc, char *argv[]) {
|
|||||||
} else {
|
} else {
|
||||||
logError(xmppc, "Befehl unbekannt");
|
logError(xmppc, "Befehl unbekannt");
|
||||||
}
|
}
|
||||||
|
sleep(10);
|
||||||
xmpp_disconnect(xmppc->conn);
|
xmpp_disconnect(xmppc->conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,6 +63,7 @@ void openpgp_execute_command(xmppc_t *xmppc, int argc, char *argv[]) {
|
|||||||
logError(xmppc, "Unbekanner Befehl: %s\n", argv[0]);
|
logError(xmppc, "Unbekanner Befehl: %s\n", argv[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sleep(10);
|
||||||
xmpp_disconnect(xmppc->conn);
|
xmpp_disconnect(xmppc->conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@ void pgp_execute_command(xmppc_t *xmppc, int argc, char *argv[]) {
|
|||||||
logError(xmppc, "Unbekanner Befehl: %s\n", argv[0]);
|
logError(xmppc, "Unbekanner Befehl: %s\n", argv[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sleep(10);
|
||||||
xmpp_disconnect(xmppc->conn);
|
xmpp_disconnect(xmppc->conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <strophe.h>
|
#include <strophe.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#define ANSI_COLOR_RED "\x1b[31m"
|
#define ANSI_COLOR_RED "\x1b[31m"
|
||||||
#define ANSI_COLOR_GREEN "\x1b[32m"
|
#define ANSI_COLOR_GREEN "\x1b[32m"
|
||||||
|
Loading…
Reference in New Issue
Block a user