summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();