diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-21 18:41:35 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-21 18:41:35 +0100 |
commit | 1c5ef4d1e3c103262aa98726a64e8e2e780930f8 (patch) | |
tree | 7f7ffd39f7dea0a0dba5d0206405c62b23219080 /src/plugins/irc | |
parent | 8f9f1f8e974c4ff020a0da7a7b39293a5e3f9f28 (diff) | |
download | weechat-1c5ef4d1e3c103262aa98726a64e8e2e780930f8.zip |
Remove IRC commands /forcejoin and /omode (now possible with alias and custom completion)
It is now possible to add such commands with aliases:
/alias -completion %%sajoin forcejoin /quote forcejoin
/alias -completion %%samode omode /quote omode
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-command.c | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index d9b4e0489..40594f014 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -1367,34 +1367,6 @@ irc_command_disconnect (void *data, struct t_gui_buffer *buffer, int argc, } /* - * irc_command_forcejoin: forces a user to join channel(s) - * (this is the equivalent to /sajoin on some IRCd's) - */ - -int -irc_command_forcejoin (void *data, struct t_gui_buffer *buffer, int argc, - char **argv, char **argv_eol) -{ - IRC_BUFFER_GET_SERVER_CHANNEL(buffer); - IRC_COMMAND_CHECK_SERVER("forcejoin", 1); - - /* make C compiler happy */ - (void) data; - - if (argc > 2) - { - irc_server_sendf (ptr_server, IRC_SERVER_OUTQUEUE_PRIO_HIGH, - "FORCEJOIN %s %s", argv[1], argv_eol[2]); - } - else - { - IRC_COMMAND_TOO_FEW_ARGUMENTS(ptr_server->buffer, "forcejoin"); - } - - return WEECHAT_RC_OK; -} - -/* * irc_command_halfop: give half operator privileges to nickname(s) */ @@ -2581,34 +2553,6 @@ irc_command_notice (void *data, struct t_gui_buffer *buffer, int argc, } /* - * irc_command_omode: change mode on channel, without having operator status - * (this is the equivalent to /sajoin on some IRCd's) - */ - -int -irc_command_omode (void *data, struct t_gui_buffer *buffer, int argc, - char **argv, char **argv_eol) -{ - IRC_BUFFER_GET_SERVER_CHANNEL(buffer); - IRC_COMMAND_CHECK_SERVER("omode", 1); - - /* make C compiler happy */ - (void) data; - - if (argc > 2) - { - irc_server_sendf (ptr_server, IRC_SERVER_OUTQUEUE_PRIO_HIGH, - "OMODE %s %s", argv[1], argv_eol[2]); - } - else - { - IRC_COMMAND_TOO_FEW_ARGUMENTS(ptr_server->buffer, "omode"); - } - - return WEECHAT_RC_OK; -} - -/* * irc_command_op: give operator privileges to nickname(s) */ @@ -4332,12 +4276,6 @@ irc_command_init () "-all" " || %(irc_servers)|%*", &irc_command_disconnect, NULL); - weechat_hook_command ("forcejoin", - N_("forces a user to join channel(s)"), - N_("nickname channel[,channel]"), - N_("nickname: nickname\n" - " channel: channel name"), - "%(nicks) %(irc_server_channels)", &irc_command_forcejoin, NULL); weechat_hook_command ("halfop", N_("give half channel operator status to " "nickname(s)"), @@ -4518,15 +4456,6 @@ irc_command_init () "nickname: user to send notice to\n" " text: text to send"), "%(nicks) %-", &irc_command_notice, NULL); - weechat_hook_command ("omode", - N_("change mode on channel, without having operator " - "status"), - /* TRANSLATORS: "channel" and "mode" are arguments - for command, translate them separately */ - N_("channel mode"), - N_("channel: channel name\n" - " mode: mode for channel"), - "%(irc_server_channels)", &irc_command_omode, NULL); weechat_hook_command ("op", N_("give channel operator status to nickname(s)"), N_("nickname [nickname]"), |