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