mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 21:36:37 +02:00
This should definitely fix the crash with Python 3.12, even when scripts are auto-loaded (the previous fix was working only when the scripts are loaded manually).
This commit is contained in:
@@ -317,6 +317,13 @@ plugin_script_init (struct t_weechat_plugin *weechat_plugin,
|
||||
&plugin_script_info_version_cb,
|
||||
weechat_plugin, NULL);
|
||||
|
||||
/*
|
||||
* call function "init_before_autoload"
|
||||
* (called even if no scripts are auto-loaded)
|
||||
*/
|
||||
if (plugin_data->init_before_autoload)
|
||||
(void)(plugin_data->init_before_autoload) ();
|
||||
|
||||
/* check if auto-load of scripts is enabled */
|
||||
info_auto_load_scripts = weechat_info_get ("auto_load_scripts", NULL);
|
||||
auto_load_scripts = (info_auto_load_scripts
|
||||
|
||||
Reference in New Issue
Block a user