summaryrefslogtreecommitdiff
path: root/src/fe-text/irssi.c
diff options
context:
space:
mode:
authorDavid Leadbeater <dgl@dgl.cx>2014-07-08 01:38:08 +0100
committerDavid Leadbeater <dgl@dgl.cx>2014-07-08 01:38:08 +0100
commit47d66d214f426ac191b92dc5c3739783d852d8f0 (patch)
tree096dd1b1cfa7259185b15372c7470c0660d96d27 /src/fe-text/irssi.c
parenta9ff985a919b90ab047d9d98d982b2cab8cd9565 (diff)
downloadirssi-47d66d214f426ac191b92dc5c3739783d852d8f0.zip
Only show banner if not connecting to servers
It's tricky to make the banner show first in all cases and it's unlikely to be seen if someone is connecting to a server already, so just don't show it.
Diffstat (limited to 'src/fe-text/irssi.c')
-rw-r--r--src/fe-text/irssi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c
index a77ded49..4dda7d39 100644
--- a/src/fe-text/irssi.c
+++ b/src/fe-text/irssi.c
@@ -27,6 +27,7 @@
#include "core.h"
#include "settings.h"
#include "session.h"
+#include "servers.h"
#include "printtext.h"
#include "fe-common-core.h"
@@ -205,8 +206,10 @@ static void textui_finish_init(void)
signal_emit("irssi init finished", 0);
statusbar_redraw(NULL, TRUE);
- printtext_window(active_win, MSGLEVEL_CRAP,
- "%s", banner_text);
+ if (servers == NULL && lookup_servers == NULL) {
+ printtext(NULL, NULL, MSGLEVEL_CRAP|MSGLEVEL_NO_ACT,
+ "%s", banner_text);
+ }
if (display_firsttimer) {
printtext_window(active_win, MSGLEVEL_CRAP,