summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/script/script-command.c6
-rw-r--r--src/plugins/script/script.c4
-rw-r--r--src/plugins/script/script.h2
3 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/script/script-command.c b/src/plugins/script/script-command.c
index 9a176aa4f..269759d5d 100644
--- a/src/plugins/script/script-command.c
+++ b/src/plugins/script/script-command.c
@@ -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)|%*"
diff --git a/src/plugins/script/script.c b/src/plugins/script/script.c
index 1a520757e..f55e487ab 100644
--- a/src/plugins/script/script.c
+++ b/src/plugins/script/script.c
@@ -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;
diff --git a/src/plugins/script/script.h b/src/plugins/script/script.h
index e8a33f6d3..45f4a2f3e 100644
--- a/src/plugins/script/script.h
+++ b/src/plugins/script/script.h
@@ -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;