From 1a3b38116409b6fa99d47718dfaf0d38026241b4 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 14 Aug 2007 19:17:00 +0000 Subject: [PATCH] small fix for last --- src/deluge_core.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 8b5bf6c3b..cf3a661c8 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -1894,7 +1894,7 @@ static PyObject *torrent_set_max_upload_slots_per_torrent(PyObject *self, PyObje static PyObject *torrent_add_url_seed(PyObject *self, PyObject *args) { python_long unique_ID; - std::string address; + char *address; if (!PyArg_ParseTuple(args, "is", &unique_ID, &address)) return NULL; @@ -1904,7 +1904,6 @@ static PyObject *torrent_add_url_seed(PyObject *self, PyObject *args) torrent_t &t = M_torrents->at(index); t.handle.add_url_seed(address); - return Py_None; } @@ -1914,7 +1913,7 @@ static PyObject *torrent_add_url_seed(PyObject *self, PyObject *args) static PyMethodDef deluge_core_methods[] = { - {"add_url_seed", torrent_pe_settings, METH_VARARGS, "."}, + {"add_url_seed", torrent_add_url_seed, METH_VARARGS, "."}, {"pe_settings", torrent_pe_settings, METH_VARARGS, "."}, {"pre_init", torrent_pre_init, METH_VARARGS, "."}, {"init", torrent_init, METH_VARARGS, "."},