From 71965ddbae49da5be742119300bb04af1dce4bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 22 Jul 2017 12:57:30 +0200 Subject: script: replace scripts iset.pl and buffers.pl by go.py and urlserver.py in examples --- src/plugins/script/script-action.c | 10 +++++----- src/plugins/script/script-command.c | 4 ++-- src/plugins/script/script-config.c | 4 ++-- src/plugins/script/script-repo.c | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/plugins/script') diff --git a/src/plugins/script/script-action.c b/src/plugins/script/script-action.c index a76e81c64..8b75d26ed 100644 --- a/src/plugins/script/script-action.c +++ b/src/plugins/script/script-action.c @@ -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]); diff --git a/src/plugins/script/script-command.c b/src/plugins/script/script-command.c index 682e6e3bd..9a176aa4f 100644 --- a/src/plugins/script/script-command.c +++ b/src/plugins/script/script-command.c @@ -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"), diff --git a/src/plugins/script/script-config.c b/src/plugins/script/script-config.c index f17e53739..31199e74e 100644 --- a/src/plugins/script/script-config.c +++ b/src/plugins/script/script-config.c @@ -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, diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c index 9cc486fd5..4e2f8398e 100644 --- a/src/plugins/script/script-repo.c +++ b/src/plugins/script/script-repo.c @@ -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. */ -- cgit v1.2.3