/SERVER: if there's no servers, print "Not connected to any servers"

instead of just being quiet.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1261 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-02-19 14:50:53 +00:00 committed by cras
commit 8f98e4b608
3 changed files with 13 additions and 5 deletions

View file

@ -191,9 +191,15 @@ static void cmd_server(const char *data, SERVER_REC *server, void *item)
void *free_arg;
if (*data == '\0') {
print_servers();
print_lookup_servers();
print_reconnects();
if (servers == NULL && lookup_servers == NULL &&
reconnects == NULL) {
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
TXT_NO_CONNECTED_SERVERS);
} else {
print_servers();
print_lookup_servers();
print_reconnects();
}
signal_stop();
return;