commit 9b5e27e60c0dc7936900bd04caa4317f91412059
parent 4b65006881b3ec79ca6ada0f74ca9790ae002961
Author: sin <sin@2f30.org>
Date: Mon, 15 Sep 2014 15:33:48 +0100
Print banner
Diffstat:
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/ratatox.c b/ratatox.c
@@ -68,6 +68,7 @@ static TAILQ_HEAD(reqhead, request) reqhead = TAILQ_HEAD_INITIALIZER(reqhead);
static Tox *tox;
+static void printbanner(void);
static void cb_conn_status(Tox *, int32_t, uint8_t, void *);
static void cb_friend_message(Tox *, int32_t, const uint8_t *, uint16_t, void *);
static void cb_friend_request(Tox *, const uint8_t *, const uint8_t *, uint16_t, void *);
@@ -150,6 +151,18 @@ tokenize(char *s, char **args, int maxargs)
}
static void
+printbanner(void)
+{
+ printf(" , .\n");
+ printf(" (\\,;,/)\n");
+ printf(" (o o)\\//,\n");
+ printf(" \\ / \\,\n");
+ printf(" `+'( ( \\ )\n");
+ printf(" // \\ |_./\n");
+ printf(" '~' '~----'\tratatox v0.0\n");
+}
+
+static void
cb_conn_status(Tox *tox, int32_t fid, uint8_t status, void *udata)
{
struct friend *f;
@@ -759,6 +772,7 @@ loop(void)
int
main(void)
{
+ printbanner();
toxinit();
friendload();
loop();