1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

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.
This commit is contained in:
Geert Hauwaerts 2014-07-06 22:23:17 +02:00
parent 2ff95c0649
commit 8c1e7d9c17

View File

@ -81,14 +81,24 @@ static int dirty, full_redraw, dummy;
static GMainLoop *main_loop; static GMainLoop *main_loop;
int quitting; int quitting;
static const char *banner_text =
" ___ _\n"
"|_ _|_ _ _____(_)\n"
" | || '_(_-<_-< |\n"
"|___|_| /__/__/_|\n"
"Irssi v" PACKAGE_VERSION " - http://www.irssi.org";
static const char *firsttimer_text = static const char *firsttimer_text =
"Looks like this is the first time you've run irssi.\n" "- - - - - - - - - - - - - - - - - - - - - - - - - - - -\n"
"This is just a reminder that you really should go read\n" "Hi there! If this is your first time using Irssi, you\n"
"startup-HOWTO if you haven't already. You can find it\n" "might want to go to our website and read the startup\n"
"and more irssi beginner info at http://www.irssi.org\n" "documentation to get you going.\n\n"
"\n" "Our community and staff are available to assist you or\n"
"For the truly impatient people who don't like any automatic\n" "to answer any questions you may have.\n\n"
"window creation or closing, just type: /MANUAL-WINDOWS"; "Use the HELP command to get detailed information about\n"
"the available commands.\n"
"- - - - - - - - - - - - - - - - - - - - - - - - - - - -";
static int display_firsttimer = FALSE; static int display_firsttimer = FALSE;
@ -194,8 +204,11 @@ static void textui_finish_init(void)
fe_common_core_finish_init(); fe_common_core_finish_init();
signal_emit("irssi init finished", 0); signal_emit("irssi init finished", 0);
printtext_window(active_win, MSGLEVEL_CRAP,
"%s", banner_text);
if (display_firsttimer) { if (display_firsttimer) {
printtext_window(active_win, MSGLEVEL_CLIENTNOTICE, printtext_window(active_win, MSGLEVEL_CRAP,
"%s", firsttimer_text); "%s", firsttimer_text);
} }
} }