diff --git a/ChangeLog.adoc b/ChangeLog.adoc index b2e945d65..e355c3b7f 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -26,6 +26,7 @@ New features:: * core: move detailed list of hooks from command `/plugin listfull` to `/debug hooks ` * core: allow to remove multiple filters at once with command `/filter del` * api: allow to catch multiple signals in functions hook_signal and hook_hsignal (issue #1780) + * irc: rename option `save` to `apply` in command `/autojoin` Bug fixes:: diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 36b4adeec..99f12d940 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -993,8 +993,8 @@ IRC_COMMAND_CALLBACK(autojoin) goto end; } - /* save currently joined channels */ - if (weechat_strcasecmp (argv[1], "save") == 0) + /* apply currently joined channels in server "autojoin" option */ + if (weechat_strcasecmp (argv[1], "apply") == 0) { irc_join_save_channels_to_autojoin (ptr_server); goto end; @@ -6797,7 +6797,7 @@ irc_command_init () N_("add [ [...]]" " || addraw [,...] [[,...]]" " || del [ [...]]" - " || save" + " || apply" " || sort"), N_(" add: add current channel or a list of channels (with optional " "keys) to the autojoin option; if you are on the channel and the " @@ -6808,7 +6808,7 @@ irc_command_init () "autojoin option\n" "channel: channel name\n" " key: key for the channel\n" - " save: save currently joined channels in the autojoin option\n" + " apply: set currently joined channels in the autojoin option\n" " sort: sort alphabetically channels in the autojoin option\n" "\n" "Examples:\n" @@ -6818,12 +6818,12 @@ irc_command_init () " /autojoin addraw #chan1,#chan2,#chan3 key1,key2\n" " /autojoin del\n" " /autojoin del #chan1\n" - " /autojoin save\n" + " /autojoin apply\n" " /autojoin sort"), "add %(irc_channels)|%*" " || addraw %(irc_channels) %-" " || del %(irc_channels_autojoin)|%*" - " || save" + " || apply" " || sort", &irc_command_autojoin, NULL, NULL); weechat_hook_command_run ("/away", &irc_command_run_away, NULL, NULL);