diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-23 11:41:09 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-23 11:41:09 +0100 |
commit | d9a4bdf6295196fbe1e02bf27a44a0acf21c6252 (patch) | |
tree | 72a96ea611c0401b3c9823ebf28d2aa74114ed87 /src/plugins/fifo | |
parent | 61ca92972886cd7a9bc301ae7e23d6dde74920bc (diff) | |
download | weechat-d9a4bdf6295196fbe1e02bf27a44a0acf21c6252.zip |
Check plugin version when loading it, to prevent crash when loading old plugins
Diffstat (limited to 'src/plugins/fifo')
-rw-r--r-- | src/plugins/fifo/fifo.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/fifo/fifo.c b/src/plugins/fifo/fifo.c index 5af2dfe6c..6bd2e40f0 100644 --- a/src/plugins/fifo/fifo.c +++ b/src/plugins/fifo/fifo.c @@ -19,10 +19,6 @@ /* fifo.c: FIFO pipe plugin for WeeChat remote control */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <stdlib.h> #include <unistd.h> #include <stdio.h> @@ -37,7 +33,8 @@ WEECHAT_PLUGIN_NAME("fifo"); WEECHAT_PLUGIN_DESCRIPTION("Fifo 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_fifo_plugin = NULL; |