summaryrefslogtreecommitdiff
path: root/src/plugins/php
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-10-03 21:34:35 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-10-03 21:34:35 +0200
commit157dc811a40fe8674e9239c24758f34f85592920 (patch)
treecb697eb99472ef62cf7671e022e33d06b9ef371d /src/plugins/php
parent0cc44cd9867e1bb6229bf315b0ad81f3bcc16bc1 (diff)
downloadweechat-157dc811a40fe8674e9239c24758f34f85592920.zip
php: add comments
Diffstat (limited to 'src/plugins/php')
-rw-r--r--src/plugins/php/weechat-php.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c
index 0502ad584..101e5532c 100644
--- a/src/plugins/php/weechat-php.c
+++ b/src/plugins/php/weechat-php.c
@@ -871,6 +871,7 @@ weechat_php_command_cb (const void *pointer, void *data,
}
if (weechat_strcasecmp (argv[1], "load") == 0)
{
+ /* load PHP script */
path_script = plugin_script_search_path (weechat_php_plugin,
ptr_name);
weechat_php_load ((path_script) ? path_script : ptr_name);
@@ -879,10 +880,12 @@ weechat_php_command_cb (const void *pointer, void *data,
}
else if (weechat_strcasecmp (argv[1], "reload") == 0)
{
+ /* reload one PHP script */
weechat_php_reload_name (ptr_name);
}
else if (weechat_strcasecmp (argv[1], "unload") == 0)
{
+ /* unload PHP script */
weechat_php_unload_name (ptr_name);
}
php_quiet = 0;
@@ -1172,6 +1175,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
plugin_script_display_short_list (weechat_php_plugin,
php_scripts);
+ /* init OK */
return WEECHAT_RC_OK;
}