1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

Add message for old/obsolete plugins

This commit is contained in:
Sebastien Helleu
2009-05-05 10:11:50 +02:00
parent 5947ba0364
commit a0a28ac3d9
9 changed files with 53 additions and 9 deletions
+10
View File
@@ -216,6 +216,11 @@ plugin_load (const char *filename)
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
"weechat_plugin_api_version",
full_name);
gui_chat_printf (NULL,
_("%sIf plugin \"%s\" is old/obsolete, you can "
"delete this file."),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
name);
dlclose (handle);
free (full_name);
return NULL;
@@ -229,6 +234,11 @@ plugin_load (const char *filename)
full_name,
WEECHAT_PLUGIN_API_VERSION,
api_version);
gui_chat_printf (NULL,
_("%sIf plugin \"%s\" is old/obsolete, you can "
"delete this file."),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
name);
dlclose (handle);
free (full_name);
return NULL;