summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/common/plugin.c2
-rw-r--r--src/common/plugin.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c
index 90c6bbc4..abdd6ea1 100644
--- a/src/common/plugin.c
+++ b/src/common/plugin.c
@@ -302,8 +302,6 @@ plugin_add (session *sess, char *filename, void *handle, void *init_func,
 		pl->hexchat_hook_print_attrs = hexchat_hook_print_attrs;
 
 		/* incase new plugins are loaded on older HexChat */
-		pl->hexchat_dummy4 = hexchat_dummy;
-		pl->hexchat_dummy3 = hexchat_dummy;
 		pl->hexchat_dummy2 = hexchat_dummy;
 		pl->hexchat_dummy1 = hexchat_dummy;
 
diff --git a/src/common/plugin.h b/src/common/plugin.h
index d299e5af..32072b7d 100644
--- a/src/common/plugin.h
+++ b/src/common/plugin.h
@@ -144,10 +144,12 @@ struct _hexchat_plugin
 		  int (*callback) (char *word[], hexchat_event_attrs *attrs,
 						   void *user_data),
 		  void *userdata);
-	void *(*hexchat_dummy4) (hexchat_plugin *ph);
-	void *(*hexchat_dummy3) (hexchat_plugin *ph);
+
+	/* If you add new functions here you should remove the corresponding number
+	 * of dummy functions bellow. */
 	void *(*hexchat_dummy2) (hexchat_plugin *ph);
 	void *(*hexchat_dummy1) (hexchat_plugin *ph);
+
 	/* PRIVATE FIELDS! */
 	void *handle;		/* from dlopen */
 	char *filename;	/* loaded from */