summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-upgrade.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-02-11 09:12:57 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-02-11 09:12:57 +0100
commit0cfc61a17e68c9c565afc6dca10bb54b5bb9810d (patch)
tree93e67e557150b2c5ea7ec08d5f74dc9e727742fb /src/plugins/irc/irc-upgrade.c
parentf153b6e6c3bc2c81b0f784ce7eabe50799b879c4 (diff)
downloadweechat-0cfc61a17e68c9c565afc6dca10bb54b5bb9810d.zip
irc: add server option "autojoin_delay" (closes #862)
The server option "autojoin_delay" adds a delay before autojoin. The server option "command_delay" is now used to add a delay before the execution of the command. On upgrade from an old version, the option "command_delay" is copied to "autojoin_delay" (in old versions, "command_delay" was applied after the execution of command and before the autojoin).
Diffstat (limited to 'src/plugins/irc/irc-upgrade.c')
-rw-r--r--src/plugins/irc/irc-upgrade.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-upgrade.c b/src/plugins/irc/irc-upgrade.c
index b500a5a7d..402a225e4 100644
--- a/src/plugins/irc/irc-upgrade.c
+++ b/src/plugins/irc/irc-upgrade.c
@@ -649,6 +649,7 @@ irc_upgrade_read_cb (const void *pointer, void *data,
irc_upgrade_current_server->reconnect_delay = weechat_infolist_integer (infolist, "reconnect_delay");
irc_upgrade_current_server->reconnect_start = weechat_infolist_time (infolist, "reconnect_start");
irc_upgrade_current_server->command_time = weechat_infolist_time (infolist, "command_time");
+ irc_upgrade_current_server->autojoin_time = weechat_infolist_time (infolist, "autojoin_time");
irc_upgrade_current_server->autojoin_done = weechat_infolist_integer (infolist, "autojoin_done");
irc_upgrade_current_server->disable_autojoin = weechat_infolist_integer (infolist, "disable_autojoin");
irc_upgrade_current_server->is_away = weechat_infolist_integer (infolist, "is_away");