From 9b5e27e60c0dc7936900bd04caa4317f91412059 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 15 Sep 2014 15:33:48 +0100 Subject: Print banner --- ratatox.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ratatox.c') 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 *); @@ -149,6 +150,18 @@ tokenize(char *s, char **args, int maxargs) return nargs; } +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) { @@ -759,6 +772,7 @@ loop(void) int main(void) { + printbanner(); toxinit(); friendload(); loop(); -- cgit v1.2.3