summaryrefslogtreecommitdiff
path: root/src/plugins/javascript
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-01-12 07:38:01 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-01-28 15:13:34 +0100
commit202b4d82c0b233a891e9e1a303833c15ae86e1d4 (patch)
tree74d6313c5ae93957adba3cd4f7d4f615d533d0c3 /src/plugins/javascript
parent9174ec979b4cdd7d06f973c096636a833cbb0188 (diff)
downloadweechat-202b4d82c0b233a891e9e1a303833c15ae86e1d4.zip
plugins: set priority in calls to weechat_config_new (issue #1872)
Diffstat (limited to 'src/plugins/javascript')
-rw-r--r--src/plugins/javascript/weechat-js.cpp4
-rw-r--r--src/plugins/javascript/weechat-js.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/javascript/weechat-js.cpp b/src/plugins/javascript/weechat-js.cpp
index caad9956f..3fc9c545f 100644
--- a/src/plugins/javascript/weechat-js.cpp
+++ b/src/plugins/javascript/weechat-js.cpp
@@ -35,11 +35,11 @@ extern "C"
#include "weechat-js-v8.h"
WEECHAT_PLUGIN_NAME(JS_PLUGIN_NAME);
-WEECHAT_PLUGIN_DESCRIPTION("Support of javascript scripts");
+WEECHAT_PLUGIN_DESCRIPTION(N_("Support of javascript scripts"));
WEECHAT_PLUGIN_AUTHOR("Koka El Kiwi <kokakiwi@kokakiwi.net>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
-WEECHAT_PLUGIN_PRIORITY(4060);
+WEECHAT_PLUGIN_PRIORITY(JS_PLUGIN_PRIORITY);
struct t_weechat_plugin *weechat_js_plugin = NULL;
diff --git a/src/plugins/javascript/weechat-js.h b/src/plugins/javascript/weechat-js.h
index 8a87c0a02..7c653b35b 100644
--- a/src/plugins/javascript/weechat-js.h
+++ b/src/plugins/javascript/weechat-js.h
@@ -35,6 +35,7 @@
#define weechat_plugin weechat_js_plugin
#define JS_PLUGIN_NAME "javascript"
+#define JS_PLUGIN_PRIORITY 4060
#define JS_CURRENT_SCRIPT_NAME ((js_current_script) ? js_current_script->name : "-")