summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-12-02 12:11:20 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-12-02 12:11:20 +0100
commitbb9a31e753dd03350a700d1efa9b0838f054cf50 (patch)
treed60bf462012dd1da06588ce90af738b5ad0a3065 /src/plugins
parent3d3941789b5c46443ef8de47d52b96d3e4bd86ed (diff)
downloadweechat-bb9a31e753dd03350a700d1efa9b0838f054cf50.zip
Add arguments for IRC command /rehash
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-command.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index 18b6116e4..79d0789f2 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -2710,11 +2710,12 @@ irc_command_rehash (void *data, struct t_gui_buffer *buffer, int argc,
/* make C compiler happy */
(void) data;
- (void) argc;
(void) argv;
- (void) argv_eol;
- irc_server_sendf (ptr_server, 0, "REHASH");
+ if (argc > 1)
+ irc_server_sendf (ptr_server, 0, "REHASH %s", argv_eol[1]);
+ else
+ irc_server_sendf (ptr_server, 0, "REHASH");
return WEECHAT_RC_OK;
}
@@ -4122,8 +4123,8 @@ irc_command_init ()
&irc_command_reconnect, NULL);
weechat_hook_command ("rehash",
N_("tell the server to reload its config file"),
- "",
- "",
+ N_("[option]"),
+ N_("option: extra option, for some servers"),
NULL, &irc_command_rehash, NULL);
weechat_hook_command ("restart",
N_("tell the server to restart itself"),