mirror of
https://github.com/weechat/weechat.git
synced 2026-06-17 00:24:47 +02:00
Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| da301b41d3 | |||
| c12c488933 | |||
| 345d99a9b5 | |||
| c6ad4bfd20 | |||
| 43697033cf | |||
| eb7fd8ac9e | |||
| 2325d43447 | |||
| 7cb991667c | |||
| 22370481a0 | |||
| 3d40f96e2d | |||
| f29dd1585e | |||
| 3d041a0364 | |||
| f418b4204e | |||
| 680426100d | |||
| b1a4cd3fab | |||
| 486ea8837a | |||
| e5725a366d | |||
| 1de31fc6a2 | |||
| 4dd47188f5 | |||
| 35df848e73 | |||
| 1cec7e8126 |
+30
-1
@@ -8,6 +8,35 @@
|
||||
:see-release-notes: If you are upgrading: please see release notes.
|
||||
:breaking: pass:quotes[*[breaking]*]
|
||||
|
||||
[[v4.3.6]]
|
||||
== Version 4.3.6 (2024-08-15)
|
||||
|
||||
[[v4.3.6_fixed]]
|
||||
=== Fixed
|
||||
|
||||
* core: fix generation of TOTP on FreeBSD (issue #2171)
|
||||
* relay/api: fix crash when sending data to a remote buffer when the remote has been deleted (issue #2157)
|
||||
* relay/api: fix timezone of dates sent to clients (issue #2151)
|
||||
|
||||
[[v4.3.5]]
|
||||
== Version 4.3.5 (2024-07-16)
|
||||
|
||||
[[v4.3.5_fixed]]
|
||||
=== Fixed
|
||||
|
||||
* ruby: fix crash in plugin initialization (issue #2163)
|
||||
|
||||
[[v4.3.4]]
|
||||
== Version 4.3.4 (2024-07-03)
|
||||
|
||||
[[v4.3.4_fixed]]
|
||||
=== Fixed
|
||||
|
||||
* python: fix crash on quit with Python 3.12 (issue #2046, issue #2126)
|
||||
* core: fix crash when deleting a bar that has no items (issue #2138)
|
||||
* ruby: fix builtin functions not available (issue #2109)
|
||||
* relay/api: fix "body_type" returned when lines or nicks of a buffer are requested
|
||||
|
||||
[[v4.3.3]]
|
||||
== Version 4.3.3 (2024-06-22)
|
||||
|
||||
@@ -194,7 +223,7 @@ New features::
|
||||
* core: move key kbd:[Ctrl+s], kbd:[Ctrl+u] to kbd:[Alt+Shift+U] (issue #2040)
|
||||
* core: display only version with command `/version`, add options `-o` and `-ol` in command `/upgrade`
|
||||
* core: add number of processes in command `/sys waitpid`
|
||||
* core, alias, trigger: allow wildcard in commands `/bar`, `/item`, `/proxy`, `/alias` and `/trigger` (issue #1956)
|
||||
* core, alias, trigger: allow wildcard in commands `/bar`, `/filter`, `/item`, `/proxy`, `/alias` and `/trigger` (issue #1956)
|
||||
* api: add support of format/translation of command arguments description line by line (issue #2005)
|
||||
* api: add function string_concat (issue #2005)
|
||||
* api: add functions util_strftimeval, util_parse_time, printf_datetime_tags, printf_y_datetime_tags (issue #649)
|
||||
|
||||
@@ -11,6 +11,21 @@ It is recommended to read it when upgrading to a new stable version. +
|
||||
For a complete list of changes, please look at ChangeLog.
|
||||
|
||||
|
||||
[[v4.3.6]]
|
||||
== Version 4.3.6 (2024-08-15)
|
||||
|
||||
No release notes.
|
||||
|
||||
[[v4.3.5]]
|
||||
== Version 4.3.5 (2024-07-16)
|
||||
|
||||
No release notes.
|
||||
|
||||
[[v4.3.4]]
|
||||
== Version 4.3.4 (2024-07-03)
|
||||
|
||||
No release notes.
|
||||
|
||||
[[v4.3.3]]
|
||||
== Version 4.3.3 (2024-06-22)
|
||||
|
||||
|
||||
+5
-14
@@ -38,6 +38,10 @@
|
||||
#include "core-string.h"
|
||||
#include "../plugins/plugin.h"
|
||||
|
||||
#ifdef htonll
|
||||
#define htobe64 htonll
|
||||
#endif
|
||||
|
||||
char *weecrypto_hash_algo_string[] = {
|
||||
"crc32",
|
||||
"md5",
|
||||
@@ -520,20 +524,7 @@ weecrypto_totp_generate_internal (const char *secret, int length_secret,
|
||||
int rc, offset, length;
|
||||
unsigned long bin_code;
|
||||
|
||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
/* Big endian does not need to swap bytes here! */
|
||||
moving_factor_swapped = moving_factor;
|
||||
#else
|
||||
moving_factor_swapped = (moving_factor >> 56)
|
||||
| ((moving_factor << 40) & 0x00FF000000000000)
|
||||
| ((moving_factor << 24) & 0x0000FF0000000000)
|
||||
| ((moving_factor << 8) & 0x000000FF00000000)
|
||||
| ((moving_factor >> 8) & 0x00000000FF000000)
|
||||
| ((moving_factor >> 24) & 0x0000000000FF0000)
|
||||
| ((moving_factor >> 40) & 0x000000000000FF00)
|
||||
| (moving_factor << 56);
|
||||
#endif
|
||||
|
||||
moving_factor_swapped = htobe64 (moving_factor);
|
||||
rc = weecrypto_hmac (secret, length_secret,
|
||||
&moving_factor_swapped, sizeof (moving_factor_swapped),
|
||||
GCRY_MD_SHA1,
|
||||
|
||||
@@ -788,6 +788,13 @@ gui_bar_set_items_array (struct t_gui_bar *bar, const char *items)
|
||||
&bar->items_suffix[i][j]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bar->items_buffer[i] = NULL;
|
||||
bar->items_prefix[i] = NULL;
|
||||
bar->items_name[i] = NULL;
|
||||
bar->items_suffix[i] = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
string_free_split (tmp_array);
|
||||
|
||||
@@ -742,13 +742,15 @@ weechat_guile_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input,
|
||||
int exec_commands, const char *code)
|
||||
{
|
||||
void *func_argv[1], *result;
|
||||
int old_guile_quiet;
|
||||
|
||||
if (!guile_script_eval)
|
||||
{
|
||||
old_guile_quiet = guile_quiet;
|
||||
guile_quiet = 1;
|
||||
guile_script_eval = weechat_guile_load (WEECHAT_SCRIPT_EVAL_NAME,
|
||||
GUILE_EVAL_SCRIPT);
|
||||
guile_quiet = 0;
|
||||
guile_quiet = old_guile_quiet;
|
||||
if (!guile_script_eval)
|
||||
return 0;
|
||||
}
|
||||
@@ -777,9 +779,10 @@ weechat_guile_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input,
|
||||
|
||||
if (!weechat_config_boolean (guile_config_look_eval_keep_context))
|
||||
{
|
||||
old_guile_quiet = guile_quiet;
|
||||
guile_quiet = 1;
|
||||
weechat_guile_unload (guile_script_eval);
|
||||
guile_quiet = 0;
|
||||
guile_quiet = old_guile_quiet;
|
||||
guile_script_eval = NULL;
|
||||
}
|
||||
|
||||
@@ -796,7 +799,7 @@ weechat_guile_command_cb (const void *pointer, void *data,
|
||||
int argc, char **argv, char **argv_eol)
|
||||
{
|
||||
char *ptr_name, *ptr_code, *path_script;
|
||||
int i, send_to_buffer_as_input, exec_commands;
|
||||
int i, send_to_buffer_as_input, exec_commands, old_guile_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
@@ -855,6 +858,7 @@ weechat_guile_command_cb (const void *pointer, void *data,
|
||||
|| (weechat_strcmp (argv[1], "reload") == 0)
|
||||
|| (weechat_strcmp (argv[1], "unload") == 0))
|
||||
{
|
||||
old_guile_quiet = guile_quiet;
|
||||
ptr_name = argv_eol[2];
|
||||
if (strncmp (ptr_name, "-q ", 3) == 0)
|
||||
{
|
||||
@@ -884,7 +888,7 @@ weechat_guile_command_cb (const void *pointer, void *data,
|
||||
/* unload guile script */
|
||||
weechat_guile_unload_name (ptr_name);
|
||||
}
|
||||
guile_quiet = 0;
|
||||
guile_quiet = old_guile_quiet;
|
||||
}
|
||||
else if (weechat_strcmp (argv[1], "eval") == 0)
|
||||
{
|
||||
@@ -1243,6 +1247,7 @@ int
|
||||
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
{
|
||||
char str_version[128];
|
||||
int old_guile_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
@@ -1316,11 +1321,13 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
guile_data.callback_signal_debug_dump = &weechat_guile_signal_debug_dump_cb;
|
||||
guile_data.callback_signal_script_action = &weechat_guile_signal_script_action_cb;
|
||||
guile_data.callback_load_file = &weechat_guile_load_cb;
|
||||
guile_data.init_before_autoload = NULL;
|
||||
guile_data.unload_all = &weechat_guile_unload_all;
|
||||
|
||||
old_guile_quiet = guile_quiet;
|
||||
guile_quiet = 1;
|
||||
plugin_script_init (weechat_guile_plugin, &guile_data);
|
||||
guile_quiet = 0;
|
||||
guile_quiet = old_guile_quiet;
|
||||
|
||||
plugin_script_display_short_list (weechat_guile_plugin,
|
||||
guile_scripts);
|
||||
@@ -1336,7 +1343,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
int
|
||||
weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
{
|
||||
int old_guile_quiet;
|
||||
|
||||
/* unload all scripts */
|
||||
old_guile_quiet = guile_quiet;
|
||||
guile_quiet = 1;
|
||||
if (guile_script_eval)
|
||||
{
|
||||
@@ -1344,7 +1354,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
guile_script_eval = NULL;
|
||||
}
|
||||
plugin_script_end (plugin, &guile_data);
|
||||
guile_quiet = 0;
|
||||
guile_quiet = old_guile_quiet;
|
||||
|
||||
/* unprotect module */
|
||||
weechat_guile_catch (scm_gc_unprotect_object, (void *)guile_module_weechat);
|
||||
|
||||
@@ -582,7 +582,7 @@ weechat_js_command_cb (const void *pointer, void *data,
|
||||
int argc, char **argv, char **argv_eol)
|
||||
{
|
||||
char *ptr_name, *ptr_code, *path_script;
|
||||
int i, send_to_buffer_as_input, exec_commands;
|
||||
int i, send_to_buffer_as_input, exec_commands, old_js_quiet;
|
||||
|
||||
/* make C++ compiler happy */
|
||||
(void) pointer;
|
||||
@@ -641,6 +641,7 @@ weechat_js_command_cb (const void *pointer, void *data,
|
||||
|| (weechat_strcmp (argv[1], "reload") == 0)
|
||||
|| (weechat_strcmp (argv[1], "unload") == 0))
|
||||
{
|
||||
old_js_quiet = js_quiet;
|
||||
ptr_name = argv_eol[2];
|
||||
if (strncmp (ptr_name, "-q ", 3) == 0)
|
||||
{
|
||||
@@ -670,7 +671,7 @@ weechat_js_command_cb (const void *pointer, void *data,
|
||||
/* unload javascript script */
|
||||
weechat_js_unload_name (ptr_name);
|
||||
}
|
||||
js_quiet = 0;
|
||||
js_quiet = old_js_quiet;
|
||||
}
|
||||
else if (weechat_strcmp (argv[1], "eval") == 0)
|
||||
{
|
||||
@@ -920,6 +921,7 @@ EXPORT int
|
||||
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
{
|
||||
char str_interpreter[64];
|
||||
int old_js_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
@@ -953,11 +955,13 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
js_data.callback_signal_debug_dump = &weechat_js_signal_debug_dump_cb;
|
||||
js_data.callback_signal_script_action = &weechat_js_signal_script_action_cb;
|
||||
js_data.callback_load_file = &weechat_js_load_cb;
|
||||
js_data.init_before_autoload = NULL;
|
||||
js_data.unload_all = &weechat_js_unload_all;
|
||||
|
||||
old_js_quiet = js_quiet;
|
||||
js_quiet = 1;
|
||||
plugin_script_init (plugin, &js_data);
|
||||
js_quiet = 0;
|
||||
js_quiet = old_js_quiet;
|
||||
|
||||
plugin_script_display_short_list (weechat_js_plugin, js_scripts);
|
||||
|
||||
@@ -971,6 +975,9 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
EXPORT int
|
||||
weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
{
|
||||
int old_js_quiet;
|
||||
|
||||
old_js_quiet = js_quiet;
|
||||
js_quiet = 1;
|
||||
if (js_script_eval)
|
||||
{
|
||||
@@ -978,7 +985,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
js_script_eval = NULL;
|
||||
}
|
||||
plugin_script_end (plugin, &js_data);
|
||||
js_quiet = 0;
|
||||
js_quiet = old_js_quiet;
|
||||
|
||||
/* free some data */
|
||||
if (js_action_install_list)
|
||||
|
||||
@@ -861,13 +861,15 @@ weechat_lua_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input,
|
||||
int exec_commands, const char *code)
|
||||
{
|
||||
void *func_argv[1], *result;
|
||||
int old_lua_quiet;
|
||||
|
||||
if (!lua_script_eval)
|
||||
{
|
||||
old_lua_quiet = lua_quiet;
|
||||
lua_quiet = 1;
|
||||
lua_script_eval = weechat_lua_load (WEECHAT_SCRIPT_EVAL_NAME,
|
||||
LUA_EVAL_SCRIPT);
|
||||
lua_quiet = 0;
|
||||
lua_quiet = old_lua_quiet;
|
||||
if (!lua_script_eval)
|
||||
return 0;
|
||||
}
|
||||
@@ -896,9 +898,10 @@ weechat_lua_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input,
|
||||
|
||||
if (!weechat_config_boolean (lua_config_look_eval_keep_context))
|
||||
{
|
||||
old_lua_quiet = lua_quiet;
|
||||
lua_quiet = 1;
|
||||
weechat_lua_unload (lua_script_eval);
|
||||
lua_quiet = 0;
|
||||
lua_quiet = old_lua_quiet;
|
||||
lua_script_eval = NULL;
|
||||
}
|
||||
|
||||
@@ -915,7 +918,7 @@ weechat_lua_command_cb (const void *pointer, void *data,
|
||||
int argc, char **argv, char **argv_eol)
|
||||
{
|
||||
char *ptr_name, *ptr_code, *path_script;
|
||||
int i, send_to_buffer_as_input, exec_commands;
|
||||
int i, send_to_buffer_as_input, exec_commands, old_lua_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
@@ -974,6 +977,7 @@ weechat_lua_command_cb (const void *pointer, void *data,
|
||||
|| (weechat_strcmp (argv[1], "reload") == 0)
|
||||
|| (weechat_strcmp (argv[1], "unload") == 0))
|
||||
{
|
||||
old_lua_quiet = lua_quiet;
|
||||
ptr_name = argv_eol[2];
|
||||
if (strncmp (ptr_name, "-q ", 3) == 0)
|
||||
{
|
||||
@@ -1003,7 +1007,7 @@ weechat_lua_command_cb (const void *pointer, void *data,
|
||||
/* unload lua script */
|
||||
weechat_lua_unload_name (ptr_name);
|
||||
}
|
||||
lua_quiet = 0;
|
||||
lua_quiet = old_lua_quiet;
|
||||
}
|
||||
else if (weechat_strcmp (argv[1], "eval") == 0)
|
||||
{
|
||||
@@ -1249,6 +1253,8 @@ weechat_lua_signal_script_action_cb (const void *pointer, void *data,
|
||||
int
|
||||
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
{
|
||||
int old_lua_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
@@ -1289,11 +1295,13 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
lua_data.callback_signal_debug_dump = &weechat_lua_signal_debug_dump_cb;
|
||||
lua_data.callback_signal_script_action = &weechat_lua_signal_script_action_cb;
|
||||
lua_data.callback_load_file = &weechat_lua_load_cb;
|
||||
lua_data.init_before_autoload = NULL;
|
||||
lua_data.unload_all = &weechat_lua_unload_all;
|
||||
|
||||
old_lua_quiet = lua_quiet;
|
||||
lua_quiet = 1;
|
||||
plugin_script_init (weechat_lua_plugin, &lua_data);
|
||||
lua_quiet = 0;
|
||||
lua_quiet = old_lua_quiet;
|
||||
|
||||
plugin_script_display_short_list (weechat_lua_plugin,
|
||||
lua_scripts);
|
||||
@@ -1309,7 +1317,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
int
|
||||
weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
{
|
||||
int old_lua_quiet;
|
||||
|
||||
/* unload all scripts */
|
||||
old_lua_quiet = lua_quiet;
|
||||
lua_quiet = 1;
|
||||
if (lua_script_eval)
|
||||
{
|
||||
@@ -1317,7 +1328,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
lua_script_eval = NULL;
|
||||
}
|
||||
plugin_script_end (plugin, &lua_data);
|
||||
lua_quiet = 0;
|
||||
lua_quiet = old_lua_quiet;
|
||||
|
||||
/* free some data */
|
||||
if (lua_action_install_list)
|
||||
|
||||
@@ -832,13 +832,15 @@ weechat_perl_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input,
|
||||
int exec_commands, const char *code)
|
||||
{
|
||||
void *func_argv[1], *result;
|
||||
int old_perl_quiet;
|
||||
|
||||
if (!perl_script_eval)
|
||||
{
|
||||
old_perl_quiet = perl_quiet;
|
||||
perl_quiet = 1;
|
||||
perl_script_eval = weechat_perl_load (WEECHAT_SCRIPT_EVAL_NAME,
|
||||
PERL_EVAL_SCRIPT);
|
||||
perl_quiet = 0;
|
||||
perl_quiet = old_perl_quiet;
|
||||
if (!perl_script_eval)
|
||||
return 0;
|
||||
}
|
||||
@@ -867,9 +869,10 @@ weechat_perl_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input,
|
||||
|
||||
if (!weechat_config_boolean (perl_config_look_eval_keep_context))
|
||||
{
|
||||
old_perl_quiet = perl_quiet;
|
||||
perl_quiet = 1;
|
||||
weechat_perl_unload (perl_script_eval);
|
||||
perl_quiet = 0;
|
||||
perl_quiet = old_perl_quiet;
|
||||
perl_script_eval = NULL;
|
||||
}
|
||||
|
||||
@@ -886,7 +889,7 @@ weechat_perl_command_cb (const void *pointer, void *data,
|
||||
int argc, char **argv, char **argv_eol)
|
||||
{
|
||||
char *ptr_name, *ptr_code, *path_script;
|
||||
int i, send_to_buffer_as_input, exec_commands;
|
||||
int i, send_to_buffer_as_input, exec_commands, old_perl_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
@@ -945,6 +948,7 @@ weechat_perl_command_cb (const void *pointer, void *data,
|
||||
|| (weechat_strcmp (argv[1], "reload") == 0)
|
||||
|| (weechat_strcmp (argv[1], "unload") == 0))
|
||||
{
|
||||
old_perl_quiet = perl_quiet;
|
||||
ptr_name = argv_eol[2];
|
||||
if (strncmp (ptr_name, "-q ", 3) == 0)
|
||||
{
|
||||
@@ -974,7 +978,7 @@ weechat_perl_command_cb (const void *pointer, void *data,
|
||||
/* unload perl script */
|
||||
weechat_perl_unload_name (ptr_name);
|
||||
}
|
||||
perl_quiet = 0;
|
||||
perl_quiet = old_perl_quiet;
|
||||
}
|
||||
else if (weechat_strcmp (argv[1], "eval") == 0)
|
||||
{
|
||||
@@ -1243,6 +1247,8 @@ weechat_perl_signal_quit_upgrade_cb (const void *pointer, void *data,
|
||||
int
|
||||
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
{
|
||||
int old_perl_quiet;
|
||||
|
||||
#ifdef PERL_SYS_INIT3
|
||||
int a;
|
||||
char **perl_args_local;
|
||||
@@ -1314,11 +1320,13 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
perl_data.callback_signal_debug_dump = &weechat_perl_signal_debug_dump_cb;
|
||||
perl_data.callback_signal_script_action = &weechat_perl_signal_script_action_cb;
|
||||
perl_data.callback_load_file = &weechat_perl_load_cb;
|
||||
perl_data.init_before_autoload = NULL;
|
||||
perl_data.unload_all = &weechat_perl_unload_all;
|
||||
|
||||
old_perl_quiet = perl_quiet;
|
||||
perl_quiet = 1;
|
||||
plugin_script_init (weechat_perl_plugin, &perl_data);
|
||||
perl_quiet = 0;
|
||||
perl_quiet = old_perl_quiet;
|
||||
|
||||
plugin_script_display_short_list (weechat_perl_plugin,
|
||||
perl_scripts);
|
||||
@@ -1337,7 +1345,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
int
|
||||
weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
{
|
||||
int old_perl_quiet;
|
||||
|
||||
/* unload all scripts */
|
||||
old_perl_quiet = perl_quiet;
|
||||
perl_quiet = 1;
|
||||
if (perl_script_eval)
|
||||
{
|
||||
@@ -1345,7 +1356,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
perl_script_eval = NULL;
|
||||
}
|
||||
plugin_script_end (plugin, &perl_data);
|
||||
perl_quiet = 0;
|
||||
perl_quiet = old_perl_quiet;
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
/* free perl interpreter */
|
||||
|
||||
@@ -870,7 +870,7 @@ weechat_php_command_cb (const void *pointer, void *data,
|
||||
int argc, char **argv, char **argv_eol)
|
||||
{
|
||||
char *ptr_name, *ptr_code, *path_script;
|
||||
int i, send_to_buffer_as_input, exec_commands;
|
||||
int i, send_to_buffer_as_input, exec_commands, old_php_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
@@ -929,6 +929,7 @@ weechat_php_command_cb (const void *pointer, void *data,
|
||||
|| (weechat_strcmp (argv[1], "reload") == 0)
|
||||
|| (weechat_strcmp (argv[1], "unload") == 0))
|
||||
{
|
||||
old_php_quiet = php_quiet;
|
||||
ptr_name = argv_eol[2];
|
||||
if (strncmp (ptr_name, "-q ", 3) == 0)
|
||||
{
|
||||
@@ -958,7 +959,7 @@ weechat_php_command_cb (const void *pointer, void *data,
|
||||
/* unload PHP script */
|
||||
weechat_php_unload_name (ptr_name);
|
||||
}
|
||||
php_quiet = 0;
|
||||
php_quiet = old_php_quiet;
|
||||
}
|
||||
else if (weechat_strcmp (argv[1], "eval") == 0)
|
||||
{
|
||||
@@ -1267,6 +1268,8 @@ php_weechat_log_message (char *message)
|
||||
int
|
||||
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
{
|
||||
int old_php_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
@@ -1302,6 +1305,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
php_data.callback_signal_debug_dump = &weechat_php_signal_debug_dump_cb;
|
||||
php_data.callback_signal_script_action = &weechat_php_signal_script_action_cb;
|
||||
php_data.callback_load_file = &weechat_php_load_cb;
|
||||
php_data.init_before_autoload = NULL;
|
||||
php_data.unload_all = &weechat_php_unload_all;
|
||||
|
||||
php_embed_module.startup = php_weechat_startup;
|
||||
@@ -1314,9 +1318,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
|
||||
PG(report_zend_debug) = 0; /* Turn off --enable-debug output */
|
||||
|
||||
old_php_quiet = php_quiet;
|
||||
php_quiet = 1;
|
||||
plugin_script_init (weechat_php_plugin, &php_data);
|
||||
php_quiet = 0;
|
||||
php_quiet = old_php_quiet;
|
||||
|
||||
plugin_script_display_short_list (weechat_php_plugin,
|
||||
php_scripts);
|
||||
@@ -1332,7 +1337,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
int
|
||||
weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
{
|
||||
int old_php_quiet;
|
||||
|
||||
/* unload all scripts */
|
||||
old_php_quiet = php_quiet;
|
||||
php_quiet = 1;
|
||||
if (php_script_eval)
|
||||
{
|
||||
@@ -1340,7 +1348,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
php_script_eval = NULL;
|
||||
}
|
||||
plugin_script_end (plugin, &php_data);
|
||||
php_quiet = 0;
|
||||
php_quiet = old_php_quiet;
|
||||
|
||||
if (weechat_php_func_map)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -122,6 +122,7 @@ struct t_plugin_script_data
|
||||
void (*callback_load_file) (void *data, const char *filename);
|
||||
|
||||
/* functions */
|
||||
void (*init_before_autoload) ();
|
||||
void (*unload_all) ();
|
||||
};
|
||||
|
||||
|
||||
@@ -1041,13 +1041,15 @@ weechat_python_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input,
|
||||
int exec_commands, const char *code)
|
||||
{
|
||||
void *func_argv[1], *result;
|
||||
int old_python_quiet;
|
||||
|
||||
if (!python_script_eval)
|
||||
{
|
||||
old_python_quiet = python_quiet;
|
||||
python_quiet = 1;
|
||||
python_script_eval = weechat_python_load (WEECHAT_SCRIPT_EVAL_NAME,
|
||||
PYTHON_EVAL_SCRIPT);
|
||||
python_quiet = 0;
|
||||
python_quiet = old_python_quiet;
|
||||
if (!python_script_eval)
|
||||
return 0;
|
||||
}
|
||||
@@ -1076,15 +1078,33 @@ weechat_python_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input,
|
||||
|
||||
if (!weechat_config_boolean (python_config_look_eval_keep_context))
|
||||
{
|
||||
old_python_quiet = python_quiet;
|
||||
python_quiet = 1;
|
||||
weechat_python_unload (python_script_eval);
|
||||
python_quiet = 0;
|
||||
python_quiet = old_python_quiet;
|
||||
python_script_eval = NULL;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Function called before the auto-load of scripts.
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_python_init_before_autoload ()
|
||||
{
|
||||
#if PY_VERSION_HEX >= 0x030C0000 && PY_VERSION_HEX < 0x030D0000
|
||||
/*
|
||||
* Workaround for crash when ending interpreters in Python 3.12:
|
||||
* the first time we load a script, we eval an empty string.
|
||||
* See https://github.com/weechat/weechat/issues/2046
|
||||
*/
|
||||
weechat_python_eval (NULL, 0, 0, "");
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Callback for command "/python".
|
||||
*/
|
||||
@@ -1095,7 +1115,7 @@ weechat_python_command_cb (const void *pointer, void *data,
|
||||
int argc, char **argv, char **argv_eol)
|
||||
{
|
||||
char *ptr_name, *ptr_code, *path_script;
|
||||
int i, send_to_buffer_as_input, exec_commands;
|
||||
int i, send_to_buffer_as_input, exec_commands, old_python_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
@@ -1154,6 +1174,7 @@ weechat_python_command_cb (const void *pointer, void *data,
|
||||
|| (weechat_strcmp (argv[1], "reload") == 0)
|
||||
|| (weechat_strcmp (argv[1], "unload") == 0))
|
||||
{
|
||||
old_python_quiet = python_quiet;
|
||||
ptr_name = argv_eol[2];
|
||||
if (strncmp (ptr_name, "-q ", 3) == 0)
|
||||
{
|
||||
@@ -1183,7 +1204,7 @@ weechat_python_command_cb (const void *pointer, void *data,
|
||||
/* unload python script */
|
||||
weechat_python_unload_name (ptr_name);
|
||||
}
|
||||
python_quiet = 0;
|
||||
python_quiet = old_python_quiet;
|
||||
}
|
||||
else if (weechat_strcmp (argv[1], "eval") == 0)
|
||||
{
|
||||
@@ -1513,6 +1534,8 @@ weechat_python_signal_script_action_cb (const void *pointer, void *data,
|
||||
int
|
||||
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
{
|
||||
int old_python_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
@@ -1586,11 +1609,13 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
python_data.callback_signal_debug_dump = &weechat_python_signal_debug_dump_cb;
|
||||
python_data.callback_signal_script_action = &weechat_python_signal_script_action_cb;
|
||||
python_data.callback_load_file = &weechat_python_load_cb;
|
||||
python_data.init_before_autoload = &weechat_python_init_before_autoload;
|
||||
python_data.unload_all = &weechat_python_unload_all;
|
||||
|
||||
old_python_quiet = python_quiet;
|
||||
python_quiet = 1;
|
||||
plugin_script_init (weechat_python_plugin, &python_data);
|
||||
python_quiet = 0;
|
||||
python_quiet = old_python_quiet;
|
||||
|
||||
plugin_script_display_short_list (weechat_python_plugin,
|
||||
python_scripts);
|
||||
@@ -1617,15 +1642,18 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
int
|
||||
weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
{
|
||||
int old_python_quiet;
|
||||
|
||||
/* unload all scripts */
|
||||
old_python_quiet = python_quiet;
|
||||
python_quiet = 1;
|
||||
plugin_script_end (plugin, &python_data);
|
||||
if (python_script_eval)
|
||||
{
|
||||
weechat_python_unload (python_script_eval);
|
||||
python_script_eval = NULL;
|
||||
}
|
||||
plugin_script_end (plugin, &python_data);
|
||||
python_quiet = 0;
|
||||
python_quiet = old_python_quiet;
|
||||
|
||||
/* free python interpreter */
|
||||
if (python_mainThreadState != NULL)
|
||||
|
||||
@@ -55,16 +55,13 @@
|
||||
cJSON_Create##__json_type ( \
|
||||
weechat_hdata_##__var_type (hdata, pointer, __var_name)));
|
||||
|
||||
#define MSG_ADD_HDATA_TIME(__json_name, __var_name) \
|
||||
date = weechat_hdata_time (hdata, pointer, __var_name); \
|
||||
strftime (str_time, sizeof (str_time), "%FT%TZ", gmtime (&date)); \
|
||||
MSG_ADD_STR_BUF(__json_name, str_time);
|
||||
|
||||
#define MSG_ADD_HDATA_TIME_USEC(__json_name, \
|
||||
__var_name, __var_name_usec) \
|
||||
time_value = weechat_hdata_time (hdata, pointer, __var_name); \
|
||||
gmtime_r (&time_value, &gm_time); \
|
||||
tv.tv_sec = mktime (&gm_time); \
|
||||
local_time = localtime (&time_value); \
|
||||
time_value -= local_time->tm_gmtoff; \
|
||||
local_time = localtime (&time_value); \
|
||||
tv.tv_sec = mktime (local_time); \
|
||||
tv.tv_usec = weechat_hdata_integer (hdata, pointer, \
|
||||
__var_name_usec); \
|
||||
weechat_util_strftimeval (str_time, sizeof (str_time), \
|
||||
@@ -497,7 +494,7 @@ relay_api_msg_line_data_to_json (struct t_gui_line_data *line_data,
|
||||
int i, tags_count;
|
||||
time_t time_value;
|
||||
struct timeval tv;
|
||||
struct tm gm_time;
|
||||
struct tm *local_time;
|
||||
|
||||
hdata = relay_hdata_line_data;
|
||||
pointer = line_data;
|
||||
@@ -736,7 +733,7 @@ relay_api_msg_hotlist_to_json (struct t_gui_hotlist *hotlist)
|
||||
cJSON *json, *json_count;
|
||||
time_t time_value;
|
||||
struct timeval tv;
|
||||
struct tm gm_time;
|
||||
struct tm *local_time;
|
||||
char str_time[256], str_key[32];
|
||||
int i, array_size;
|
||||
long long buffer_id;
|
||||
|
||||
@@ -511,6 +511,8 @@ RELAY_API_PROTOCOL_CALLBACK(buffers)
|
||||
int nicks;
|
||||
enum t_relay_api_colors colors;
|
||||
|
||||
json = NULL;
|
||||
|
||||
ptr_buffer = NULL;
|
||||
if (client->http_req->num_path_items > 2)
|
||||
{
|
||||
@@ -536,6 +538,11 @@ RELAY_API_PROTOCOL_CALLBACK(buffers)
|
||||
{
|
||||
lines = relay_http_get_param_long (client->http_req, "lines", LONG_MAX);
|
||||
json = relay_api_msg_lines_to_json (ptr_buffer, lines, colors);
|
||||
if (json)
|
||||
{
|
||||
relay_api_msg_send_json (client, RELAY_HTTP_200_OK, NULL,
|
||||
"line", json);
|
||||
}
|
||||
}
|
||||
else if (strcmp (client->http_req->path_items[3], "nicks") == 0)
|
||||
{
|
||||
@@ -543,6 +550,11 @@ RELAY_API_PROTOCOL_CALLBACK(buffers)
|
||||
weechat_hdata_pointer (relay_hdata_buffer,
|
||||
ptr_buffer, "nicklist_root"),
|
||||
colors);
|
||||
if (json)
|
||||
{
|
||||
relay_api_msg_send_json (client, RELAY_HTTP_200_OK, NULL,
|
||||
"nick_group", json);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -580,13 +592,18 @@ RELAY_API_PROTOCOL_CALLBACK(buffers)
|
||||
ptr_buffer = weechat_hdata_move (relay_hdata_buffer, ptr_buffer, 1);
|
||||
}
|
||||
}
|
||||
if (json)
|
||||
{
|
||||
relay_api_msg_send_json (client, RELAY_HTTP_200_OK, NULL,
|
||||
"buffer", json);
|
||||
}
|
||||
}
|
||||
|
||||
if (!json)
|
||||
return RELAY_API_PROTOCOL_RC_MEMORY;
|
||||
|
||||
relay_api_msg_send_json (client, RELAY_HTTP_200_OK, NULL, "buffer", json);
|
||||
cJSON_Delete (json);
|
||||
|
||||
return RELAY_API_PROTOCOL_RC_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -444,14 +444,17 @@ relay_remote_event_buffer_input_cb (const void *pointer,
|
||||
struct t_gui_buffer *buffer,
|
||||
const char *input_data)
|
||||
{
|
||||
struct t_relay_remote *remote;
|
||||
struct t_relay_remote *ptr_remote;
|
||||
cJSON *json, *json_body;
|
||||
long long buffer_id;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
(void) data;
|
||||
|
||||
remote = (struct t_relay_remote *)pointer;
|
||||
ptr_remote = relay_remote_search (weechat_buffer_get_string (buffer, "localvar_relay_remote"));
|
||||
if (!ptr_remote)
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
json = NULL;
|
||||
|
||||
@@ -475,7 +478,7 @@ relay_remote_event_buffer_input_cb (const void *pointer,
|
||||
cJSON_CreateString (input_data));
|
||||
cJSON_AddItemToObject (json, "body", json_body);
|
||||
|
||||
relay_remote_network_send_json (remote, json);
|
||||
relay_remote_network_send_json (ptr_remote, json);
|
||||
|
||||
cJSON_Delete (json);
|
||||
|
||||
@@ -643,7 +646,7 @@ RELAY_REMOTE_EVENT_CALLBACK(buffer)
|
||||
{
|
||||
ptr_buffer = weechat_buffer_new_props (
|
||||
full_name, buffer_props,
|
||||
&relay_remote_event_buffer_input_cb, event->remote, NULL,
|
||||
&relay_remote_event_buffer_input_cb, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
apply_props = 0;
|
||||
}
|
||||
|
||||
@@ -872,13 +872,15 @@ weechat_ruby_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input,
|
||||
{
|
||||
void *func_argv[1], *result;
|
||||
char empty_arg[1] = { '\0' };
|
||||
int old_ruby_quiet;
|
||||
|
||||
if (!ruby_script_eval)
|
||||
{
|
||||
old_ruby_quiet = ruby_quiet;
|
||||
ruby_quiet = 1;
|
||||
ruby_script_eval = weechat_ruby_load (WEECHAT_SCRIPT_EVAL_NAME,
|
||||
RUBY_EVAL_SCRIPT);
|
||||
ruby_quiet = 0;
|
||||
ruby_quiet = old_ruby_quiet;
|
||||
if (!ruby_script_eval)
|
||||
return 0;
|
||||
}
|
||||
@@ -907,9 +909,10 @@ weechat_ruby_eval (struct t_gui_buffer *buffer, int send_to_buffer_as_input,
|
||||
|
||||
if (!weechat_config_boolean (ruby_config_look_eval_keep_context))
|
||||
{
|
||||
old_ruby_quiet = ruby_quiet;
|
||||
ruby_quiet = 1;
|
||||
weechat_ruby_unload (ruby_script_eval);
|
||||
ruby_quiet = 0;
|
||||
ruby_quiet = old_ruby_quiet;
|
||||
ruby_script_eval = NULL;
|
||||
}
|
||||
|
||||
@@ -926,7 +929,7 @@ weechat_ruby_command_cb (const void *pointer, void *data,
|
||||
int argc, char **argv, char **argv_eol)
|
||||
{
|
||||
char *ptr_name, *ptr_code, *path_script;
|
||||
int i, send_to_buffer_as_input, exec_commands;
|
||||
int i, send_to_buffer_as_input, exec_commands, old_ruby_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
@@ -985,6 +988,7 @@ weechat_ruby_command_cb (const void *pointer, void *data,
|
||||
|| (weechat_strcmp (argv[1], "reload") == 0)
|
||||
|| (weechat_strcmp (argv[1], "unload") == 0))
|
||||
{
|
||||
old_ruby_quiet = ruby_quiet;
|
||||
ptr_name = argv_eol[2];
|
||||
if (strncmp (ptr_name, "-q ", 3) == 0)
|
||||
{
|
||||
@@ -1014,7 +1018,7 @@ weechat_ruby_command_cb (const void *pointer, void *data,
|
||||
/* unload ruby script */
|
||||
weechat_ruby_unload_name (ptr_name);
|
||||
}
|
||||
ruby_quiet = 0;
|
||||
ruby_quiet = old_ruby_quiet;
|
||||
}
|
||||
else if (weechat_strcmp (argv[1], "eval") == 0)
|
||||
{
|
||||
@@ -1260,8 +1264,9 @@ weechat_ruby_signal_script_action_cb (const void *pointer, void *data,
|
||||
int
|
||||
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
{
|
||||
int ruby_error;
|
||||
int ruby_error, old_ruby_quiet;
|
||||
VALUE err;
|
||||
char* ruby_options_argv[] = { "ruby", "-enil", NULL };
|
||||
char *weechat_ruby_code = {
|
||||
"$stdout = WeechatOutputs\n"
|
||||
"$stderr = WeechatOutputs\n"
|
||||
@@ -1360,6 +1365,8 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
|
||||
ruby_init ();
|
||||
|
||||
ruby_options (2, ruby_options_argv);
|
||||
|
||||
/* redirect stdin and stdout */
|
||||
ruby_mWeechatOutputs = rb_define_module ("WeechatOutputs");
|
||||
rb_define_singleton_method (ruby_mWeechatOutputs, "write",
|
||||
@@ -1404,11 +1411,13 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
ruby_data.callback_signal_debug_dump = &weechat_ruby_signal_debug_dump_cb;
|
||||
ruby_data.callback_signal_script_action = &weechat_ruby_signal_script_action_cb;
|
||||
ruby_data.callback_load_file = &weechat_ruby_load_cb;
|
||||
ruby_data.init_before_autoload = NULL;
|
||||
ruby_data.unload_all = &weechat_ruby_unload_all;
|
||||
|
||||
old_ruby_quiet = ruby_quiet;
|
||||
ruby_quiet = 1;
|
||||
plugin_script_init (weechat_ruby_plugin, &ruby_data);
|
||||
ruby_quiet = 0;
|
||||
ruby_quiet = old_ruby_quiet;
|
||||
|
||||
plugin_script_display_short_list (weechat_ruby_plugin,
|
||||
ruby_scripts);
|
||||
@@ -1424,7 +1433,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
int
|
||||
weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
{
|
||||
int old_ruby_quiet;
|
||||
|
||||
/* unload all scripts */
|
||||
old_ruby_quiet = ruby_quiet;
|
||||
ruby_quiet = 1;
|
||||
if (ruby_script_eval)
|
||||
{
|
||||
@@ -1432,7 +1444,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
ruby_script_eval = NULL;
|
||||
}
|
||||
plugin_script_end (plugin, &ruby_data);
|
||||
ruby_quiet = 0;
|
||||
ruby_quiet = old_ruby_quiet;
|
||||
|
||||
ruby_cleanup (0);
|
||||
signal (SIGCHLD, SIG_DFL);
|
||||
|
||||
@@ -574,7 +574,7 @@ weechat_tcl_command_cb (const void *pointer, void *data,
|
||||
int argc, char **argv, char **argv_eol)
|
||||
{
|
||||
char *ptr_name, *ptr_code, *path_script;
|
||||
int i, send_to_buffer_as_input, exec_commands;
|
||||
int i, send_to_buffer_as_input, exec_commands, old_tcl_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
@@ -633,6 +633,7 @@ weechat_tcl_command_cb (const void *pointer, void *data,
|
||||
|| (weechat_strcmp (argv[1], "reload") == 0)
|
||||
|| (weechat_strcmp (argv[1], "unload") == 0))
|
||||
{
|
||||
old_tcl_quiet = tcl_quiet;
|
||||
ptr_name = argv_eol[2];
|
||||
if (strncmp (ptr_name, "-q ", 3) == 0)
|
||||
{
|
||||
@@ -662,7 +663,7 @@ weechat_tcl_command_cb (const void *pointer, void *data,
|
||||
/* unload tcl script */
|
||||
weechat_tcl_unload_name (ptr_name);
|
||||
}
|
||||
tcl_quiet = 0;
|
||||
tcl_quiet = old_tcl_quiet;
|
||||
}
|
||||
else if (weechat_strcmp (argv[1], "eval") == 0)
|
||||
{
|
||||
@@ -910,6 +911,8 @@ weechat_tcl_signal_script_action_cb (const void *pointer, void *data,
|
||||
int
|
||||
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
{
|
||||
int old_tcl_quiet;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
@@ -945,11 +948,13 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
tcl_data.callback_signal_debug_dump = &weechat_tcl_signal_debug_dump_cb;
|
||||
tcl_data.callback_signal_script_action = &weechat_tcl_signal_script_action_cb;
|
||||
tcl_data.callback_load_file = &weechat_tcl_load_cb;
|
||||
tcl_data.init_before_autoload = NULL;
|
||||
tcl_data.unload_all = &weechat_tcl_unload_all;
|
||||
|
||||
old_tcl_quiet = tcl_quiet;
|
||||
tcl_quiet = 1;
|
||||
plugin_script_init (weechat_tcl_plugin, &tcl_data);
|
||||
tcl_quiet = 0;
|
||||
tcl_quiet = old_tcl_quiet;
|
||||
|
||||
plugin_script_display_short_list (weechat_tcl_plugin,
|
||||
tcl_scripts);
|
||||
@@ -965,7 +970,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
int
|
||||
weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
{
|
||||
int old_tcl_quiet;
|
||||
|
||||
/* unload all scripts */
|
||||
old_tcl_quiet = tcl_quiet;
|
||||
tcl_quiet = 1;
|
||||
if (tcl_script_eval)
|
||||
{
|
||||
@@ -973,7 +981,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
tcl_script_eval = NULL;
|
||||
}
|
||||
plugin_script_end (plugin, &tcl_data);
|
||||
tcl_quiet = 0;
|
||||
tcl_quiet = old_tcl_quiet;
|
||||
|
||||
/* free some data */
|
||||
if (tcl_action_install_list)
|
||||
|
||||
@@ -200,7 +200,7 @@ if(ICONV_LIBRARY)
|
||||
list(APPEND EXTRA_LIBS ${ICONV_LIBRARY})
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
||||
list(APPEND EXTRA_LIBS "intl")
|
||||
if(HAVE_BACKTRACE)
|
||||
list(APPEND EXTRA_LIBS "execinfo")
|
||||
|
||||
+2
-2
@@ -39,8 +39,8 @@
|
||||
# devel-number the devel version as hex number ("0x04010000" for "4.1.0-dev")
|
||||
#
|
||||
|
||||
weechat_stable="4.3.3"
|
||||
weechat_devel="4.3.3"
|
||||
weechat_stable="4.3.6"
|
||||
weechat_devel="4.3.6"
|
||||
|
||||
stable_major=$(echo "${weechat_stable}" | cut -d"." -f1)
|
||||
stable_minor=$(echo "${weechat_stable}" | cut -d"." -f2)
|
||||
|
||||
Reference in New Issue
Block a user