1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

Move /away command from irc plugin to core

This commit is contained in:
Sebastien Helleu
2010-03-19 19:28:19 +01:00
parent 568d913c58
commit bc3fa9fd4c
23 changed files with 323 additions and 269 deletions
+14
View File
@@ -62,6 +62,12 @@
#include "../plugins/plugin-config.h"
/*
* 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 "