]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/mod-python.c
hash: add extra metadata to del user handlers
[irc/evilnet/x3.git] / src / mod-python.c
index 57a91835288abd89b94a12be42aec46b9cb00b1f..8b69fa086c113aa627630d363f9d2121088734a4 100644 (file)
@@ -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);