mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 05:46:38 +02:00
script: replace scripts iset.pl and buffers.pl by go.py and urlserver.py in examples
This commit is contained in:
@@ -186,7 +186,7 @@ script_action_load (const char *name, int quiet)
|
||||
return;
|
||||
}
|
||||
|
||||
/* execute command (for example: "/perl load iset.pl") */
|
||||
/* execute command (for example: "/python load go.py") */
|
||||
snprintf (str_command, sizeof (str_command),
|
||||
"/%s load %s%s",
|
||||
script_language[language],
|
||||
@@ -211,7 +211,7 @@ script_action_unload (const char *name, int quiet)
|
||||
pos = strrchr (name, '.');
|
||||
if (pos)
|
||||
{
|
||||
/* unload script by using name + extension (example: "iset.pl") */
|
||||
/* unload script by using name + extension (example: "go.py") */
|
||||
language = script_language_search_by_extension (pos + 1);
|
||||
if (language < 0)
|
||||
{
|
||||
@@ -225,7 +225,7 @@ script_action_unload (const char *name, int quiet)
|
||||
}
|
||||
/*
|
||||
* search registered name of script using name with extension,
|
||||
* for example with "iset.pl" we should find "iset"
|
||||
* for example with "go.py" we should find "go"
|
||||
*/
|
||||
snprintf (hdata_name, sizeof (hdata_name),
|
||||
"%s_script", script_language[language]);
|
||||
@@ -316,7 +316,7 @@ script_action_reload (const char *name, int quiet)
|
||||
pos = strrchr (name, '.');
|
||||
if (pos)
|
||||
{
|
||||
/* reload script by using name + extension (example: "iset.pl") */
|
||||
/* reload script by using name + extension (example: "go.py") */
|
||||
language = script_language_search_by_extension (pos + 1);
|
||||
if (language < 0)
|
||||
{
|
||||
@@ -330,7 +330,7 @@ script_action_reload (const char *name, int quiet)
|
||||
}
|
||||
/*
|
||||
* search registered name of script using name with extension,
|
||||
* for example with "iset.pl" we should find "iset"
|
||||
* for example with "go.py" we should find "go"
|
||||
*/
|
||||
snprintf (hdata_name, sizeof (hdata_name),
|
||||
"%s_script", script_language[language]);
|
||||
|
||||
@@ -363,8 +363,8 @@ script_command_init ()
|
||||
"\n"
|
||||
"Examples:\n"
|
||||
" /script search url\n"
|
||||
" /script install iset.pl buffers.pl\n"
|
||||
" /script remove iset.pl\n"
|
||||
" /script install go.py urlserver.py\n"
|
||||
" /script remove go.py\n"
|
||||
" /script hold urlserver.py\n"
|
||||
" /script reload urlserver\n"
|
||||
" /script upgrade"),
|
||||
|
||||
@@ -167,7 +167,7 @@ script_config_get_xml_filename ()
|
||||
*
|
||||
* If suffix is not NULL, it is added to filename.
|
||||
*
|
||||
* Example: "/home/xxx/.weechat/script/iset.pl"
|
||||
* Example: "/home/xxx/.weechat/script/go.py"
|
||||
*
|
||||
* Note: result must be freed after use.
|
||||
*/
|
||||
@@ -748,7 +748,7 @@ script_config_init ()
|
||||
"hold", "string",
|
||||
N_("scripts to \"hold\": comma-separated list of scripts which will "
|
||||
"never been upgraded and can not be removed, for example: "
|
||||
"\"buffers.pl,iset.pl\""),
|
||||
"\"go.py,urlserver.py\""),
|
||||
NULL, 0, 0, "", NULL, 0,
|
||||
NULL, NULL, NULL,
|
||||
&script_config_change_hold_cb, NULL, NULL,
|
||||
|
||||
@@ -135,7 +135,7 @@ script_repo_search_by_name (const char *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for a script by name/extension (example: "iset.pl").
|
||||
* Searches for a script by name/extension (example: "go.py").
|
||||
*
|
||||
* Returns pointer to script found, NULL if not found.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user