mirror of
https://github.com/irssi/irssi.git
synced 2026-08-13 13:42:13 +02:00
/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:
parent
bd92708f22
commit
8f98e4b608
3 changed files with 13 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue