mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
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.
This commit is contained in:
parent
a9ff985a91
commit
47d66d214f
1 changed files with 5 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue