X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/9d59f1964d0f20da7f044804c10f1f69010d7963..a6bcc9299647fd6e2875946d764712103134c76e:/src/mod-python.c diff --git a/src/mod-python.c b/src/mod-python.c index 57a9183..8b69fa0 100644 --- a/src/mod-python.c +++ b/src/mod-python.c @@ -1555,7 +1555,7 @@ cleanup: } static int -python_handle_new_user(struct userNode *user) +python_handle_new_user(struct userNode *user, UNUSED_ARG(void *extra)) { PyObject* name = NULL; PyObject* usr = NULL; @@ -1652,7 +1652,7 @@ cleanup: log_module(PY_LOG, LOG_WARNING, "%s", err); } -void python_handle_del_user(struct userNode *user, struct userNode *killer, const char *why) { +void python_handle_del_user(struct userNode *user, struct userNode *killer, const char *why, UNUSED_ARG(void *extra)) { PyObject *usr = NULL, *killr = NULL, *name = NULL; PyObject *reason = NULL, *retval = NULL; char const* err = NULL; @@ -1993,9 +1993,9 @@ int python_init(void) { // Please help us by implementing any of the callbacks listed as TODO below. They already exist // in x3, they just need handle_ bridges implemented. (see python_handle_join for an example) reg_server_link_func(python_handle_server_link, NULL); - reg_new_user_func(python_handle_new_user); + reg_new_user_func(python_handle_new_user, NULL); reg_nick_change_func(python_handle_nick_change); - reg_del_user_func(python_handle_del_user); + reg_del_user_func(python_handle_del_user, NULL); //TODO: reg_account_func(python_handle_account); /* stamping of account name to the ircd */ //TODO: reg_handle_rename_func(python_handle_handle_rename); /* handle used to ALSO mean account name */ //TODO: reg_failpw_func(python_handle_failpw);