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

javascript: add new plugin to run javascript scripts in WeeChat

This plugin was originally written by Koka El Kiwi
(repository: https://github.com/KokaKiwi/weechat-js-plugin).

This plugin uses Google V8 engine to execute JS scripts.
This commit is contained in:
Sébastien Helleu
2015-03-06 20:07:37 +01:00
parent a83ad08c48
commit 145191dbc5
17 changed files with 6138 additions and 5 deletions
+2 -2
View File
@@ -370,9 +370,9 @@ script_command_init ()
" || show %(script_scripts)"
" || load %(script_files)|%*"
" || unload %(python_script)|%(perl_script)|%(ruby_script)|"
"%(tcl_script)|%(lua_script)|%(guile_script)|%*"
"%(tcl_script)|%(lua_script)|%(guile_script)|%(javascript_script)|%*"
" || reload %(python_script)|%(perl_script)|%(ruby_script)|"
"%(tcl_script)|%(lua_script)|%(guile_script)|%*"
"%(tcl_script)|%(lua_script)|%(guile_script)|%(javascript_script)|%*"
" || autoload %(script_scripts_installed)|%*"
" || noautoload %(script_scripts_installed)|%*"
" || toggleautoload %(script_scripts_installed)|%*"
+2 -2
View File
@@ -45,9 +45,9 @@ WEECHAT_PLUGIN_PRIORITY(2000);
struct t_weechat_plugin *weechat_script_plugin = NULL;
char *script_language[SCRIPT_NUM_LANGUAGES] =
{ "guile", "lua", "perl", "python", "ruby", "tcl" };
{ "guile", "lua", "perl", "python", "ruby", "tcl", "javascript" };
char *script_extension[SCRIPT_NUM_LANGUAGES] =
{ "scm", "lua", "pl", "py", "rb", "tcl" };
{ "scm", "lua", "pl", "py", "rb", "tcl", "js" };
int script_plugin_loaded[SCRIPT_NUM_LANGUAGES];
struct t_hashtable *script_loaded = NULL;
+1 -1
View File
@@ -23,7 +23,7 @@
#define weechat_plugin weechat_script_plugin
#define SCRIPT_PLUGIN_NAME "script"
#define SCRIPT_NUM_LANGUAGES 6
#define SCRIPT_NUM_LANGUAGES 7
extern struct t_weechat_plugin *weechat_script_plugin;