Change 'passwd' option to 'password' for /join command

This commit is contained in:
James Booth
2014-03-16 18:12:16 +00:00
parent f4d52f3d40
commit 22ab268618
3 changed files with 9 additions and 9 deletions

View File

@@ -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);