mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 21:36:37 +02:00
Check plugin version when loading it, to prevent crash when loading old plugins
This commit is contained in:
@@ -19,10 +19,6 @@
|
||||
/* debug.c: Debug plugin for WeeChat */
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -32,7 +28,8 @@
|
||||
WEECHAT_PLUGIN_NAME("debug");
|
||||
WEECHAT_PLUGIN_DESCRIPTION("Debug plugin for WeeChat");
|
||||
WEECHAT_PLUGIN_AUTHOR("FlashCode <flashcode@flashtux.org>");
|
||||
WEECHAT_PLUGIN_VERSION("0.1");
|
||||
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
|
||||
WEECHAT_PLUGIN_WEECHAT_VERSION(WEECHAT_VERSION);
|
||||
WEECHAT_PLUGIN_LICENSE("GPL");
|
||||
|
||||
struct t_weechat_plugin *weechat_debug_plugin = NULL;
|
||||
|
||||
Reference in New Issue
Block a user