summaryrefslogtreecommitdiff
path: root/src/core/commands.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-25 22:59:49 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-25 22:59:49 +0000
commit69b8d4f81b4dc82ff95e8b845c9a211b62f0248f (patch)
treece9bc5b68d9e48b9beb0193c35d8c6ec98c3673c /src/core/commands.h
parent0415b1bbcec9265add58cdac646beeb54c7c38e5 (diff)
downloadirssi-69b8d4f81b4dc82ff95e8b845c9a211b62f0248f.zip
Subcommand and command parameter completion works now also if you use
alias as the base command. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@380 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/commands.h')
-rw-r--r--src/core/commands.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/commands.h b/src/core/commands.h
index a199a1f5..1f1dc8dd 100644
--- a/src/core/commands.h
+++ b/src/core/commands.h
@@ -22,6 +22,9 @@ enum {
CMDERR_NOT_GOOD_IDEA /* not good idea to do, -yes overrides this */
};
+#define alias_find(alias) \
+ iconfig_get_str("aliases", alias, NULL)
+
#define cmd_return_error(a) { signal_emit("error command", 1, GINT_TO_POINTER(a)); signal_stop(); return; }
#define cmd_param_error(a) { cmd_params_free(free_arg); cmd_return_error(a); }