From 9477c41e1392f09723171894b99b481607e884b2 Mon Sep 17 00:00:00 2001 From: Geo Date: Sun, 10 Dec 2023 19:11:49 -0500 Subject: [PATCH] convert displayhook to PyObj --- src/mod/python.mod/pycmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/python.mod/pycmds.c b/src/mod/python.mod/pycmds.c index 4e67588e0..0d16568a8 100644 --- a/src/mod/python.mod/pycmds.c +++ b/src/mod/python.mod/pycmds.c @@ -38,7 +38,7 @@ static PyObject *py_ircsend(PyObject *self, PyObject *args) { Py_RETURN_NONE; } -static void py_displayhook(PyObject *self, PyObject *o) { +static PyObject *py_displayhook(PyObject *self, PyObject *o) { PyObject *pstr; if (o) { @@ -48,6 +48,7 @@ static void py_displayhook(PyObject *self, PyObject *o) { Py_DECREF(pstr); } } + Py_RETURN_NONE; } static void cmd_python(struct userrec *u, int idx, char *par) {