mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
Fix option irc.network.away_check
This commit is contained in:
@@ -173,15 +173,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
irc_server_auto_connect (auto_connect);
|
||||
|
||||
irc_hook_timer = weechat_hook_timer (1 * 1000, 0, 0,
|
||||
&irc_server_timer_cb, NULL);
|
||||
|
||||
/*
|
||||
if (irc_cfg_irc_away_check != 0)
|
||||
irc_hook_timer_check_away = weechat_hook_timer (irc_cfg_irc_away_check * 60 * 1000,
|
||||
0,
|
||||
&irc_server_timer_check_away,
|
||||
NULL);
|
||||
*/
|
||||
&irc_server_timer_cb, NULL);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
@@ -196,6 +188,11 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
/* make C compiler happy */
|
||||
(void) plugin;
|
||||
|
||||
if (irc_hook_timer)
|
||||
weechat_unhook (irc_hook_timer);
|
||||
if (irc_hook_timer_check_away)
|
||||
weechat_unhook (irc_hook_timer_check_away);
|
||||
|
||||
irc_config_write ();
|
||||
|
||||
if (irc_signal_upgrade_received)
|
||||
|
||||
Reference in New Issue
Block a user