From 22ab2686181bde9b35fd04c5364d511d08cd57a1 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 16 Mar 2014 18:12:16 +0000 Subject: Change 'passwd' option to 'password' for /join command --- src/command/command.c | 12 ++++++------ src/command/commands.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/command') diff --git a/src/command/command.c b/src/command/command.c index eb00931f..b09c91fb 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -237,18 +237,18 @@ static struct cmd_t command_defs[] = { "/join", cmd_join, parse_args, 1, 5, NULL, - { "/join room[@server] [nick value] [passwd value]", "Join a chat room.", - { "/join room[@server] [nick value] [passwd value]", - "--------------------------", + { "/join room[@server] [nick value] [password value]", "Join a chat room.", + { "/join room[@server] [nick value] [password value]", + "-------------------------------------------------", "Join a chat room at the conference server.", "If nick is specified you will join with this nickname.", - "Otherwise the account preference 'muc.nick' will be used which is the localpart of your JID (before the @).", + "Otherwise the account preference 'muc.nick' will be used which by default is the localpart of your JID (before the @).", "If no server is supplied, the account preference 'muc.service' is used, which is 'conference.' by default.", "If the room doesn't exist, and the server allows it, a new one will be created.", "", "Example : /join jdev@conference.jabber.org", "Example : /join jdev@conference.jabber.org nick mynick", - "Example : /join private@conference.jabber.org nick mynick passwd mypassword", + "Example : /join private@conference.jabber.org nick mynick password mypassword", "Example : /join jdev (as user@jabber.org will join jdev@conference.jabber.org)", NULL } } }, @@ -1064,7 +1064,7 @@ cmd_init(void) join_property_ac = autocomplete_new(); autocomplete_add(join_property_ac, "nick"); - autocomplete_add(join_property_ac, "passwd"); + autocomplete_add(join_property_ac, "password"); statuses_ac = autocomplete_new(); autocomplete_add(statuses_ac, "console"); diff --git a/src/command/commands.c b/src/command/commands.c index 4a7418f4..b9e78b3f 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1642,7 +1642,7 @@ cmd_join(gchar **args, struct cmd_help_t help) } if (strcmp(opt1, "nick") == 0) { nick = opt1val; - } else if (strcmp(opt1, "passwd") == 0) { + } else if (strcmp(opt1, "password") == 0) { passwd = opt1val; } else { cons_show("Usage: %s", help.usage); @@ -1652,7 +1652,7 @@ cmd_join(gchar **args, struct cmd_help_t help) if (opt2 != NULL) { if (strcmp(opt2, "nick") == 0) { nick = opt2val; - } else if (strcmp(opt2, "passwd") == 0) { + } else if (strcmp(opt2, "password") == 0) { passwd = opt2val; } else { cons_show("Usage: %s", help.usage); -- cgit 1.4.1-2-gfad0