diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-19 19:28:19 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-19 19:28:19 +0100 |
commit | bc3fa9fd4cddd24d066b60f11c08d3c8e5ff1e61 (patch) | |
tree | 7f70801298fb4301f4ff98933cda2bcaf4d18e62 /src/core/wee-command.c | |
parent | 568d913c5895e356672320a4a6694570ed0b87c2 (diff) | |
download | weechat-bc3fa9fd4cddd24d066b60f11c08d3c8e5ff1e61.zip |
Move /away command from irc plugin to core
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r-- | src/core/wee-command.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index a4b28b31d..974a2e4b4 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -63,6 +63,12 @@ /* + * command_away: toggle away status + */ + +COMMAND_EMPTY(away) + +/* * command_bar_list: list bars */ @@ -4066,6 +4072,14 @@ command_window (void *data, struct t_gui_buffer *buffer, void command_init () { + hook_command (NULL, "away", + N_("toggle away status"), + N_("[-all] [message]"), + N_(" -all: toggle away status on all connected " + "servers\n" + "message: message for away (if no message is " + "given, away status is removed)"), + "-all", &command_away, NULL); hook_command (NULL, "bar", N_("manage bars"), N_("[add barname type[,cond1,cond2,...] position size " |