mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #88 from dgl/banner
Only show the banner when not connecting to servers
This commit is contained in:
commit
05979c8d9f
@ -27,6 +27,7 @@
|
|||||||
#include "core.h"
|
#include "core.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "session.h"
|
#include "session.h"
|
||||||
|
#include "servers.h"
|
||||||
|
|
||||||
#include "printtext.h"
|
#include "printtext.h"
|
||||||
#include "fe-common-core.h"
|
#include "fe-common-core.h"
|
||||||
@ -95,7 +96,7 @@ static const char *firsttimer_text =
|
|||||||
"documentation to get you going.\n\n"
|
"documentation to get you going.\n\n"
|
||||||
"Our community and staff are available to assist you or\n"
|
"Our community and staff are available to assist you or\n"
|
||||||
"to answer any questions you may have.\n\n"
|
"to answer any questions you may have.\n\n"
|
||||||
"Use the HELP command to get detailed information about\n"
|
"Use the /HELP command to get detailed information about\n"
|
||||||
"the available commands.\n"
|
"the available commands.\n"
|
||||||
"- - - - - - - - - - - - - - - - - - - - - - - - - - - -";
|
"- - - - - - - - - - - - - - - - - - - - - - - - - - - -";
|
||||||
|
|
||||||
@ -205,11 +206,13 @@ static void textui_finish_init(void)
|
|||||||
signal_emit("irssi init finished", 0);
|
signal_emit("irssi init finished", 0);
|
||||||
statusbar_redraw(NULL, TRUE);
|
statusbar_redraw(NULL, TRUE);
|
||||||
|
|
||||||
printtext_window(active_win, MSGLEVEL_CRAP,
|
if (servers == NULL && lookup_servers == NULL) {
|
||||||
|
printtext(NULL, NULL, MSGLEVEL_CRAP|MSGLEVEL_NO_ACT,
|
||||||
"%s", banner_text);
|
"%s", banner_text);
|
||||||
|
}
|
||||||
|
|
||||||
if (display_firsttimer) {
|
if (display_firsttimer) {
|
||||||
printtext_window(active_win, MSGLEVEL_CRAP,
|
printtext(NULL, NULL, MSGLEVEL_CRAP|MSGLEVEL_NO_ACT,
|
||||||
"%s", firsttimer_text);
|
"%s", firsttimer_text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user