summary refs log tree commit diff stats
path: root/plugins/python/python.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-05-18 15:13:05 -0300
committerTingPing <tngpng@gmail.com>2013-05-18 15:13:05 -0300
commita22ae9f39ad3c1d97cc1ce7013813438055162fc (patch)
tree7d73a932b2f1102d2708fd84713bb72b59047e01 /plugins/python/python.c
parent02298c8e76655b95de42e2b5ad69571dff40bbf7 (diff)
Support time lists via python
Diffstat (limited to 'plugins/python/python.c')
-rw-r--r--plugins/python/python.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index d5a2aba8..01027f8f 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -1907,6 +1907,7 @@ Module_xchat_get_list(PyObject *self, PyObject *args)
 			PyObject *attr = NULL;
 			const char *sattr;
 			int iattr;
+			time_t tattr;
 			switch(fields[i][0]) {
 			case 's':
 				sattr = hexchat_list_str(ph, list, (char*)fld);
@@ -1916,6 +1917,10 @@ Module_xchat_get_list(PyObject *self, PyObject *args)
 				iattr = hexchat_list_int(ph, list, (char*)fld);
 				attr = PyLong_FromLong((long)iattr);
 				break;
+			case 't':
+				tattr = hexchat_list_time(ph, list, (char*)fld);
+				attr = PyLong_FromLong((long)tattr);
+				break;
 			case 'p':
 				sattr = hexchat_list_str(ph, list, (char*)fld);
 				if (strcmp(fld, "context") == 0) {