From c5d025d96804025ce8d2a4435f066276e829d2c5 Mon Sep 17 00:00:00 2001 From: Elfyn McBratney Date: Mon, 1 Jan 2007 23:46:24 +0000 Subject: [PATCH] Remove spy hooks. --- modules/m_trace.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/modules/m_trace.c b/modules/m_trace.c index 1c34e14..0edf7b0 100644 --- a/modules/m_trace.c +++ b/modules/m_trace.c @@ -45,8 +45,6 @@ static int m_trace(struct Client *, struct Client *, int, const char **); -static void trace_spy(struct Client *, struct Client *); - struct Message trace_msgtab = { "TRACE", 0, 0, 0, MFLG_SLOW, {mg_unreg, {m_trace, 0}, {m_trace, 0}, mg_ignore, mg_ignore, {m_trace, 0}} @@ -177,15 +175,11 @@ m_trace(struct Client *client_p, struct Client *source_p, int parc, const char * tname = target_p->name; } - trace_spy(source_p, target_p); - sendto_one_numeric(source_p, RPL_ENDOFTRACE, form_str(RPL_ENDOFTRACE), tname); return 0; } - trace_spy(source_p, NULL); - /* give non-opers a limited trace output of themselves (if local), * opers and servers (if no shide) --fl */ @@ -427,20 +421,3 @@ report_this_status(struct Client *source_p, struct Client *target_p, return (cnt); } - -/* trace_spy() - * - * input - pointer to client - * output - none - * side effects - hook event doing_trace is called - */ -static void -trace_spy(struct Client *source_p, struct Client *target_p) -{ - hook_data_client hdata; - - hdata.client = source_p; - hdata.target = target_p; - - call_hook(doing_trace_hook, &hdata); -} -- 2.11.4.GIT