X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..81e41406f4027dfef50dcd5ef33403661bea5995:/extensions/spy_trace_notice.c diff --git a/extensions/spy_trace_notice.c b/extensions/spy_trace_notice.c index 8c4560ab..e4f5e567 100644 --- a/extensions/spy_trace_notice.c +++ b/extensions/spy_trace_notice.c @@ -18,8 +18,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA - * - * $Id: spy_trace_notice.c 498 2006-01-15 16:40:33Z jilles $ */ #include "stdinc.h" #include "modules.h" @@ -28,6 +26,8 @@ #include "ircd.h" #include "send.h" +static const char spy_desc[] = "Sends a notice when someone uses TRACE or LTRACE"; + void show_trace(hook_data_client *); mapi_hfn_list_av1 trace_hfnlist[] = { @@ -35,7 +35,7 @@ mapi_hfn_list_av1 trace_hfnlist[] = { {NULL, NULL} }; -DECLARE_MODULE_AV1(trace_spy, NULL, NULL, NULL, NULL, trace_hfnlist, "$Revision: 498 $"); +DECLARE_MODULE_AV2(trace_spy, NULL, NULL, NULL, NULL, trace_hfnlist, NULL, NULL, spy_desc); void show_trace(hook_data_client *data) @@ -44,11 +44,11 @@ show_trace(hook_data_client *data) sendto_realops_snomask(SNO_SPY, L_ALL, "trace requested by %s (%s@%s) [%s] on %s", data->client->name, data->client->username, - data->client->host, data->client->user->server, + data->client->host, data->client->servptr->name, data->target->name); else sendto_realops_snomask(SNO_SPY, L_ALL, "trace requested by %s (%s@%s) [%s]", data->client->name, data->client->username, - data->client->host, data->client->user->server); + data->client->host, data->client->servptr->name); }