updated 'not connected' messages
This commit is contained in:
parent
5da3ef5ffa
commit
af092439a3
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user