1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

script: add support of PHP scripts

This commit is contained in:
Sébastien Helleu
2017-09-03 14:56:08 +02:00
parent 20f47b9b41
commit 586d2a0745
3 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -373,9 +373,11 @@ script_command_init ()
" || show %(script_scripts)"
" || load %(script_files)|%*"
" || unload %(python_script)|%(perl_script)|%(ruby_script)|"
"%(tcl_script)|%(lua_script)|%(guile_script)|%(javascript_script)|%*"
"%(tcl_script)|%(lua_script)|%(guile_script)|%(javascript_script)|"
"%(php_script)|%*"
" || reload %(python_script)|%(perl_script)|%(ruby_script)|"
"%(tcl_script)|%(lua_script)|%(guile_script)|%(javascript_script)|%*"
"%(tcl_script)|%(lua_script)|%(guile_script)|%(javascript_script)|"
"%(php_script)|%*"
" || autoload %(script_scripts_installed)|%*"
" || noautoload %(script_scripts_installed)|%*"
" || toggleautoload %(script_scripts_installed)|%*"
+2 -2
View File
@@ -46,9 +46,9 @@ WEECHAT_PLUGIN_PRIORITY(3000);
struct t_weechat_plugin *weechat_script_plugin = NULL;
char *script_language[SCRIPT_NUM_LANGUAGES] =
{ "guile", "lua", "perl", "python", "ruby", "tcl", "javascript" };
{ "guile", "lua", "perl", "python", "ruby", "tcl", "javascript", "php" };
char *script_extension[SCRIPT_NUM_LANGUAGES] =
{ "scm", "lua", "pl", "py", "rb", "tcl", "js" };
{ "scm", "lua", "pl", "py", "rb", "tcl", "js", "php" };
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 7
#define SCRIPT_NUM_LANGUAGES 8
extern struct t_weechat_plugin *weechat_script_plugin;