From 8c1e7d9c176f060a36084a40f074e220753a6210 Mon Sep 17 00:00:00 2001 From: Geert Hauwaerts Date: Sun, 6 Jul 2014 22:23:17 +0200 Subject: [PATCH] Updated the startup banner + added generic banner I updated the banner displayed when you start Irssi for the first time and I have added a banner that will be displayed everytime you start Irssi. --- src/fe-text/irssi.c | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index 2f2f37d5..3161fc60 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -81,14 +81,24 @@ static int dirty, full_redraw, dummy; static GMainLoop *main_loop; int quitting; +static const char *banner_text = + " ___ _\n" + "|_ _|_ _ _____(_)\n" + " | || '_(_-<_-< |\n" + "|___|_| /__/__/_|\n" + "Irssi v" PACKAGE_VERSION " - http://www.irssi.org"; + static const char *firsttimer_text = - "Looks like this is the first time you've run irssi.\n" - "This is just a reminder that you really should go read\n" - "startup-HOWTO if you haven't already. You can find it\n" - "and more irssi beginner info at http://www.irssi.org\n" - "\n" - "For the truly impatient people who don't like any automatic\n" - "window creation or closing, just type: /MANUAL-WINDOWS"; + "- - - - - - - - - - - - - - - - - - - - - - - - - - - -\n" + "Hi there! If this is your first time using Irssi, you\n" + "might want to go to our website and read the startup\n" + "documentation to get you going.\n\n" + "Our community and staff are available to assist you or\n" + "to answer any questions you may have.\n\n" + "Use the HELP command to get detailed information about\n" + "the available commands.\n" + "- - - - - - - - - - - - - - - - - - - - - - - - - - - -"; + static int display_firsttimer = FALSE; @@ -194,8 +204,11 @@ static void textui_finish_init(void) fe_common_core_finish_init(); signal_emit("irssi init finished", 0); + printtext_window(active_win, MSGLEVEL_CRAP, + "%s", banner_text); + if (display_firsttimer) { - printtext_window(active_win, MSGLEVEL_CLIENTNOTICE, + printtext_window(active_win, MSGLEVEL_CRAP, "%s", firsttimer_text); } }