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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user