about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c7
-rw-r--r--src/ui/ui.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 3cb05fe8..b3b4eadb 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -545,6 +545,12 @@ _ui_unknown_command(const char * const input)
 }
 
 static void
+_ui_already_connected(void)
+{
+    cons_show("You are either connected already, or a login is in process.");
+}
+
+static void
 _ui_disconnected(void)
 {
     wins_lost_connection();
@@ -1922,4 +1928,5 @@ ui_init_module(void)
     ui_replace_input = _ui_replace_input;
     ui_invalid_command_usage = _ui_invalid_command_usage;
     ui_unknown_command = _ui_unknown_command;
+    ui_already_connected = _ui_already_connected;
 }
diff --git a/src/ui/ui.h b/src/ui/ui.h
index fc689305..7543e6a8 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -161,6 +161,7 @@ void (*ui_replace_input)(char *input, const char * const new_input, int *size);
 
 void (*ui_invalid_command_usage)(const char * const usage, void (**setting_func)(void));
 void (*ui_unknown_command)(const char * const input);
+void (*ui_already_connected)(void);
 
 // console window actions
 void (*cons_show)(const char * const msg, ...);