summaryrefslogtreecommitdiffhomepage
path: root/src/alias.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-09-13 23:31:35 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-09-13 23:31:35 +0100
commit090772553e2b16962462e45e8871bfc076f23b15 (patch)
treedbe8873a38a61156f3b3a90d7c7132f608d1b70c /src/alias.c
parent792463cb133f65645feb48743bbc03ef8eb96bdd (diff)
Fix some lingering idiocy
Thanks Aciidz for pointing out the strings with no newline in them, and thanks Clang for warning me I wasn't using a function for ages while I was too lazy to delete it.
Diffstat (limited to 'src/alias.c')
-rw-r--r--src/alias.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/alias.c b/src/alias.c
index 765f735..b1f7ad7 100644
--- a/src/alias.c
+++ b/src/alias.c
@@ -52,7 +52,7 @@ void alias_rm(const char *name) {
DEF_CCMD_HERE_UNREG(sst_alias_clear, "Remove all command aliases", 0) {
if (cmd->argc != 1) {
- con_warn("usage: sst_alias_clear");
+ con_warn("usage: sst_alias_clear\n");
return;
}
alias_nuke();
@@ -60,11 +60,11 @@ DEF_CCMD_HERE_UNREG(sst_alias_clear, "Remove all command aliases", 0) {
DEF_CCMD_HERE_UNREG(sst_alias_remove, "Remove a command alias", 0) {
if (cmd->argc != 2) {
- con_warn("usage: sst_alias_remove name");
+ con_warn("usage: sst_alias_remove name\n");
return;
}
if (strlen(cmd->argv[1]) > 31) {
- con_warn("invalid alias name (too long)");
+ con_warn("invalid alias name (too long)\n");
return;
}
alias_rm(cmd->argv[1]);