From af092439a333c8b51c7755f759f7612fbdac3ff5 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 20 Jan 2023 16:00:01 +0100 Subject: [PATCH] updated 'not connected' messages --- js/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/commands.js b/js/commands.js index 5bb71f7..a117fdf 100644 --- a/js/commands.js +++ b/js/commands.js @@ -159,7 +159,7 @@ function cmd_msg(input) { if (input === undefined) return "No recipient was given!"; if (!user.connected) - return "You are not connected!"; + return "You are not connected! Use the 'nick' command to connect using your username."; if (user.name === "") return "You do not have a name!"; // Get recipient username without spaces and pretext @@ -196,7 +196,7 @@ function cmd_exit(error) { // List all users to be able to chat with function cmd_ls() { if (!user.connected) - return "You are not connected!"; + return "You are not connected! Use the 'nick' command to connect using your username."; requestUsernames(); return null; } \ No newline at end of file