1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 20:06:38 +02:00

scripts: fix issue with long interval in function hook_timer

Affected plugins: python, ruby, lua, tcl, guile, javascript, php.
This commit is contained in:
Sébastien Helleu
2022-08-01 22:18:38 +02:00
parent b1404b0277
commit bcb8647aa4
11 changed files with 35 additions and 14 deletions
+3 -2
View File
@@ -2148,10 +2148,11 @@ weechat_js_api_hook_timer_cb (const void *pointer, void *data,
API_FUNC(hook_timer)
{
int interval, align_second, max_calls;
long interval;
int align_second, max_calls;
const char *result;
API_INIT_FUNC(1, "hook_timer", "iiiss", API_RETURN_EMPTY);
API_INIT_FUNC(1, "hook_timer", "niiss", API_RETURN_EMPTY);
interval = args[0]->IntegerValue();
align_second = args[1]->IntegerValue();