Skip to content

Commit

Permalink
convert displayhook to PyObj
Browse files Browse the repository at this point in the history
  • Loading branch information
vanosg committed Dec 11, 2023
1 parent 2fc428b commit 9477c41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mod/python.mod/pycmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 9477c41

Please sign in to comment.