about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-09 22:29:38 +0100
committerJames Booth <boothj5@gmail.com>2014-04-09 22:29:38 +0100
commite97ec56fce641554ff7aa2ff9f0583e1fb9fc364 (patch)
tree8db6eff2bc9cc60098077765fa9417976cd164ef /src/ui
parent714ee2486353361898df7f5bb339e9be3f456830 (diff)
downloadprofani-tty-e97ec56fce641554ff7aa2ff9f0583e1fb9fc364.tar.gz
Added ui_already_connected
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, ...);