diff options
| author | James Booth <boothj5@gmail.com> | 2015-02-01 20:47:28 +0000 |
|---|---|---|
| committer | James Booth <boothj5@gmail.com> | 2015-02-01 20:47:28 +0000 |
| commit | 372cf822cb1dc62284b53515a79da741fe4db125 (patch) | |
| tree | ff8144a76f38052e4945f2a2ccfaf214568bd940 /src/command | |
| parent | 702ea0b5f38970d7a3e135ca39c2b255767de4f6 (diff) | |
| parent | 5b26879e3137c833baf393878d955420360b8edb (diff) | |
| download | profani-tty-372cf822cb1dc62284b53515a79da741fe4db125.tar.gz | |
Merge branch 'master' into readline
Diffstat (limited to 'src/command')
| -rw-r--r-- | src/command/command.c | 4 | ||||
| -rw-r--r-- | src/command/commands.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/command/command.c b/src/command/command.c index 909c954c..bed6e396 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -615,7 +615,7 @@ static struct cmd_t command_defs[] = { "/wrap on|off", "Word wrapping.", { "/wrap on|off", "------------", - "Enable or disable word wrapping.", + "Enable or disable word wrapping in the main window.", NULL } } }, { "/time", @@ -1141,7 +1141,7 @@ cmd_init(void) autocomplete_add(help_ac, "basic"); autocomplete_add(help_ac, "chatting"); autocomplete_add(help_ac, "groupchat"); - autocomplete_add(help_ac, "presence"); + autocomplete_add(help_ac, "presences"); autocomplete_add(help_ac, "contacts"); autocomplete_add(help_ac, "service"); autocomplete_add(help_ac, "settings"); diff --git a/src/command/commands.c b/src/command/commands.c index 75a4f6cf..2059c982 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -154,6 +154,10 @@ cmd_connect(gchar **args, struct cmd_help_t help) cons_show("Error evaluating password, see logs for details."); return TRUE; } + // strip trailing newline + if (g_str_has_suffix(account->password, "\n")) { + account->password[strlen(account->password)-1] = '\0'; + } } else { log_error("popen failed when running eval_password."); cons_show("Error evaluating password, see logs for details."); @@ -710,7 +714,7 @@ cmd_help(gchar **args, struct cmd_help_t help) "/rooms", "/tiny", "/who", "/nick", "/privileges", "/info", "/occupants" }; _cmd_show_filtered_help("Groupchat commands", filter, ARRAY_SIZE(filter)); - } else if (strcmp(args[0], "presence") == 0) { + } else if (strcmp(args[0], "presences") == 0) { gchar *filter[] = { "/autoaway", "/away", "/chat", "/dnd", "/online", "/priority", "/account", "/status", "/statuses", "/who", "/xa" }; |