diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2003-10-02 22:42:51 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2003-10-02 22:42:51 +0000 |
commit | 106bdb1d4ac51198ffed5f28c35818e842432e33 (patch) | |
tree | 507f5a986ddb7b69490c41c91399f085e92d74f0 /src/command.h | |
parent | ef4e6b93e0ce0370ed1f29a546e69f044cfe1ad1 (diff) | |
download | weechat-106bdb1d4ac51198ffed5f28c35818e842432e33.zip |
Added /alias and /unalias commands
Diffstat (limited to 'src/command.h')
-rw-r--r-- | src/command.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/command.h b/src/command.h index b8857c0ef..ac248c526 100644 --- a/src/command.h +++ b/src/command.h @@ -40,6 +40,16 @@ struct t_weechat_command int (*cmd_function_1arg)(char *); }; +typedef struct t_weechat_alias t_weechat_alias; + +struct t_weechat_alias +{ + char *alias_name; + char *alias_command; + t_weechat_alias *prev_alias; + t_weechat_alias *next_alias; +}; + typedef struct t_index_command t_index_command; struct t_index_command @@ -54,7 +64,7 @@ extern t_index_command *index_commands; extern void index_command_build (); extern int exec_weechat_command (t_irc_server *, char *); extern void user_command (t_irc_server *, char *); -extern int weechat_cmd_alias (int, char **); +extern int weechat_cmd_alias (char *); extern int weechat_cmd_clear (int, char **); extern int weechat_cmd_connect (int, char **); extern int weechat_cmd_disconnect (int, char **); @@ -62,6 +72,6 @@ extern int weechat_cmd_help (int, char **); extern int weechat_cmd_server (int, char **); extern int weechat_cmd_save (int, char **); extern int weechat_cmd_set (int, char **); -extern int weechat_cmd_unalias (int, char **); +extern int weechat_cmd_unalias (char *); #endif /* command.h */ |