summaryrefslogtreecommitdiff
path: root/ratatox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-15 15:33:48 +0100
committersin <sin@2f30.org>2014-09-15 15:33:48 +0100
commit9b5e27e60c0dc7936900bd04caa4317f91412059 (patch)
tree2ff7e4cc8223136ae7445e6ed25cfc0a983fa0e3 /ratatox.c
parent4b65006881b3ec79ca6ada0f74ca9790ae002961 (diff)
Print banner
Diffstat (limited to 'ratatox.c')
-rw-r--r--ratatox.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/ratatox.c b/ratatox.c
index ba71f3b..1b23259 100644
--- 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();