summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/python/weechat-python.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-03-23 11:41:09 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-03-23 11:41:09 +0100
commitd9a4bdf6295196fbe1e02bf27a44a0acf21c6252 (patch)
tree72a96ea611c0401b3c9823ebf28d2aa74114ed87 /src/plugins/scripts/python/weechat-python.c
parent61ca92972886cd7a9bc301ae7e23d6dde74920bc (diff)
downloadweechat-d9a4bdf6295196fbe1e02bf27a44a0acf21c6252.zip
Check plugin version when loading it, to prevent crash when loading old plugins
Diffstat (limited to 'src/plugins/scripts/python/weechat-python.c')
-rw-r--r--src/plugins/scripts/python/weechat-python.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c
index 2deb39302..0b7dd6c4f 100644
--- a/src/plugins/scripts/python/weechat-python.c
+++ b/src/plugins/scripts/python/weechat-python.c
@@ -31,7 +31,8 @@
WEECHAT_PLUGIN_NAME("python");
WEECHAT_PLUGIN_DESCRIPTION("Python 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_python_plugin = NULL;