summaryrefslogtreecommitdiff
path: root/src/plugins/alias/alias.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/alias/alias.c
parent61ca92972886cd7a9bc301ae7e23d6dde74920bc (diff)
downloadweechat-d9a4bdf6295196fbe1e02bf27a44a0acf21c6252.zip
Check plugin version when loading it, to prevent crash when loading old plugins
Diffstat (limited to 'src/plugins/alias/alias.c')
-rw-r--r--src/plugins/alias/alias.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c
index 24338acc6..461680f2b 100644
--- a/src/plugins/alias/alias.c
+++ b/src/plugins/alias/alias.c
@@ -19,10 +19,6 @@
/* alias.c: Alias plugin for WeeChat */
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include <stdlib.h>
#include <string.h>
@@ -33,7 +29,8 @@
WEECHAT_PLUGIN_NAME("alias");
WEECHAT_PLUGIN_DESCRIPTION("Alias 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_alias_plugin = NULL;