mirror of
https://github.com/weechat/weechat.git
synced 2026-06-23 19:36:37 +02:00
Renamed sources files in script plugins
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
ADD_LIBRARY(python MODULE weechat-python.c)
|
||||
ADD_LIBRARY(python MODULE python.c)
|
||||
|
||||
SET_TARGET_PROPERTIES(python PROPERTIES PREFIX "")
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@ libdir = ${weechat_libdir}/plugins
|
||||
|
||||
lib_LTLIBRARIES = python.la
|
||||
|
||||
python_la_SOURCES = weechat-python.c
|
||||
python_la_SOURCES = python.c
|
||||
python_la_LDFLAGS = -module
|
||||
python_la_LIBADD = ../lib_weechat_plugins_scripts.la $(PYTHON_LFLAGS)
|
||||
|
||||
@@ -2604,18 +2604,18 @@ weechat_python_cmd (t_weechat_plugin *plugin,
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if (plugin->ascii_strcasecmp (plugin, argv[0], "autoload") == 0)
|
||||
if (plugin->strcasecmp (plugin, argv[0], "autoload") == 0)
|
||||
weechat_script_auto_load (plugin, "python", weechat_python_load);
|
||||
else if (plugin->ascii_strcasecmp (plugin, argv[0], "reload") == 0)
|
||||
else if (plugin->strcasecmp (plugin, argv[0], "reload") == 0)
|
||||
{
|
||||
weechat_python_unload_all (plugin);
|
||||
weechat_script_auto_load (plugin, "python", weechat_python_load);
|
||||
}
|
||||
else if (plugin->ascii_strcasecmp (plugin, argv[0], "unload") == 0)
|
||||
else if (plugin->strcasecmp (plugin, argv[0], "unload") == 0)
|
||||
weechat_python_unload_all (plugin);
|
||||
break;
|
||||
case 2:
|
||||
if (plugin->ascii_strcasecmp (plugin, argv[0], "load") == 0)
|
||||
if (plugin->strcasecmp (plugin, argv[0], "load") == 0)
|
||||
{
|
||||
/* load Python script */
|
||||
path_script = weechat_script_search_full_name (plugin, "python", argv[1]);
|
||||
@@ -2623,7 +2623,7 @@ weechat_python_cmd (t_weechat_plugin *plugin,
|
||||
if (path_script)
|
||||
free (path_script);
|
||||
}
|
||||
else if (plugin->ascii_strcasecmp (plugin, argv[0], "unload") == 0)
|
||||
else if (plugin->strcasecmp (plugin, argv[0], "unload") == 0)
|
||||
{
|
||||
/* unload Python script */
|
||||
weechat_python_unload_name (plugin, argv[1]);
|
||||
Reference in New Issue
Block a user