* 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"
#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[] = {
{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)
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);
}