/*
- * charybdis: an advanced Internet Relay Chat Daemon(ircd).
+ * Solanum: a slightly advanced ircd
* sno_routing.c: Shows notices about netjoins and netsplits
*
* Copyright (c) 2005-2006 Jilles Tjoelker <jilles-at-stack.nl>
#include "ircd.h"
#include "send.h"
-static void h_nn_server_eob(struct Client *);
-static void h_nn_client_exit(hook_data_client_exit *);
+static void h_nn_server_eob(void *);
+static void h_nn_client_exit(void *);
mapi_hfn_list_av1 nn_hfnlist[] = {
- { "server_eob", (hookfn) h_nn_server_eob },
- { "client_exit", (hookfn) h_nn_client_exit },
+ { "server_eob", h_nn_server_eob },
+ { "client_exit", h_nn_client_exit },
{ NULL, NULL }
};
-DECLARE_MODULE_AV1(networknotice, NULL, NULL, NULL, NULL, nn_hfnlist, "$Revision: 1172 $");
+static const char sno_desc[] = "Show notices about netjoins and netsplits";
+
+DECLARE_MODULE_AV2(networknotice, NULL, NULL, NULL, NULL, nn_hfnlist, NULL, NULL, sno_desc);
/*
* count_mark_downlinks
}
static void
-h_nn_server_eob(struct Client *source_p)
+h_nn_server_eob(void *data)
{
+ struct Client *source_p = data;
int s = 0, u = 0;
if (IsFloodDone(source_p))
}
static void
-h_nn_client_exit(hook_data_client_exit *hdata)
+h_nn_client_exit(void *data)
{
+ hook_data_client_exit *hdata = data;
struct Client *source_p;
int s = 0, u = 0;
char *fromnick;