diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-01 20:13:01 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-01 20:13:01 +0200 |
commit | 2475ba43a3a3a5b9c894d71c91cd1c598b60039b (patch) | |
tree | 67b3151b063fe9c13c3900953f731b75b83eb28c | |
parent | d2c2f9e6cd13caa2855081c5986a0df9c685d6fc (diff) | |
download | weechat-2475ba43a3a3a5b9c894d71c91cd1c598b60039b.zip |
javascript: fix return of long value in functions infolist_time, hdata_long and hdata_time
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | src/plugins/javascript/weechat-js-api.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index ea4b6228c..e832e6a2c 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -30,6 +30,7 @@ Bug fixes:: * irc: fix duplicated channels in autojoin option when autojoin_dynamic is enabled (issue #1795) * irc: fix display of TOPIC and QUIT messages with an empty trailing parameter (issue #1797) + * javascript: fix return of long value in functions infolist_time, hdata_long and hdata_time * relay: fix parsing of IRC messages received from clients (issue #1796) * xfer: fix crash when closing DCC chat buffer diff --git a/src/plugins/javascript/weechat-js-api.cpp b/src/plugins/javascript/weechat-js-api.cpp index 271108387..c042b7775 100644 --- a/src/plugins/javascript/weechat-js-api.cpp +++ b/src/plugins/javascript/weechat-js-api.cpp @@ -116,7 +116,7 @@ extern "C" #define API_RETURN_INT(__int) \ return v8::Integer::New(__int) #define API_RETURN_LONG(__int) \ - return v8::Integer::New(__int) + return v8::Number::New(__int) /* |