summary refs log tree commit diff stats
path: root/plugins/python
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-05-04 17:39:24 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-05-04 17:39:24 +0200
commit22a0d5a3fb2057b3f1243005b97567687c3c2cb5 (patch)
treebf65997adeae136498d8875b46e64c70168e1269 /plugins/python
parent46443cbd1c842118506d94e07699f31885390e39 (diff)
Add Python major version to plugin description
Diffstat (limited to 'plugins/python')
-rw-r--r--plugins/python/python.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index 81b8b3e1..997b0e96 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -2378,7 +2378,12 @@ hexchat_plugin_init(hexchat_plugin *plugin_handle,
 
 	*plugin_name = "Python";
 	*plugin_version = VERSION;
-	*plugin_desc = "Python scripting interface";
+
+	/* FIXME You can't free this since it's used as long as the plugin's
+	 * loaded, but if you unload it, everything belonging to the plugin is
+	 * supposed to be freed anyway.
+	 */
+	*plugin_desc = g_strdup_printf ("Python %d scripting interface", PY_MAJOR_VERSION);
 
 	/* Initialize python. */
 #ifdef IS_PY3K