summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-02-18 12:59:02 -0500
committerPatrick Griffis <tingping@tingping.se>2016-02-18 12:59:02 -0500
commit0826e7d353f1b29dd5feaaaf3e90b02965ffab2f (patch)
treef1b8fc959bbbb0e5a336e233c09a62ab3aab6a28 /plugins
parentaab881fda26578edb5c17a705069e55e8c612f29 (diff)
python: Handle get_info('win_ptr')
Diffstat (limited to 'plugins')
-rw-r--r--plugins/python/python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index b97761f5..34784c3b 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -1726,7 +1726,7 @@ Module_hexchat_get_info(PyObject *self, PyObject *args)
 	if (info == NULL) {
 		Py_RETURN_NONE;
 	}
-	if (strcmp (name, "gtkwin_ptr") == 0)
+	if (strcmp (name, "gtkwin_ptr") == 0 || strcmp (name, "win_ptr") == 0)
 		return PyUnicode_FromFormat("%p", info); /* format as pointer */
 	else
 		return PyUnicode_FromString(info);