ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_trace.c
(Generate patch)

Comparing:
ircd-hybrid-7.2/modules/m_trace.c (file contents), Revision 891 by michael, Thu Nov 1 13:44:50 2007 UTC vs.
ircd-hybrid-7.3/modules/m_trace.c (file contents), Revision 1144 by michael, Tue Jul 26 19:33:54 2011 UTC

# Line 24 | Line 24
24  
25   #include "stdinc.h"
26   #include "handlers.h"
27 < #include "tools.h"
27 > #include "list.h"
28   #include "hook.h"
29   #include "client.h"
30   #include "hash.h"
# Line 51 | Line 51 | struct Message trace_msgtab = {
51    { m_unregistered, m_trace, ms_trace, m_ignore, mo_trace, m_ignore }
52   };
53  
54 – #ifndef STATIC_MODULES
54   const char *_version = "$Revision$";
55   static struct Callback *trace_cb;
56  
# Line 79 | Line 78 | _moddeinit(void)
78    mod_del_cmd(&trace_msgtab);
79    uninstall_hook(trace_cb, va_actual_trace);
80   }
82 – #endif
81  
82   static void report_this_status(struct Client *, struct Client *, int);
83  
# Line 162 | Line 160 | mo_trace(struct Client *client_p, struct
160          {
161            ac2ptr = ptr->data;
162  
163 <          if (match(tname, ac2ptr->name) || match(ac2ptr->name, tname))
163 >          if (match(tname, ac2ptr->name))
164              break;
165            else
166              ac2ptr = NULL;
# Line 177 | Line 175 | mo_trace(struct Client *client_p, struct
175                     ircd_version, tname, "ac2ptr_is_NULL!!");
176        return;
177      }
178 +
179      case HUNTED_ISME:
181 – #ifdef STATIC_MODULES
182 –      do_actual_trace(source_p, parc, parv);
183 – #else
180        execute_callback(trace_cb, source_p, parc, parv);
185 – #endif
181        break;
182      default:
183        return;
# Line 216 | Line 211 | do_actual_trace(struct Client *source_p,
211      to = source_p->name;
212    }
213  
214 +  sendto_realops_flags(UMODE_SPY, L_ALL,
215 +                       "TRACE requested by %s (%s@%s) [%s]",
216 +                       source_p->name, source_p->username,
217 +                       source_p->host, source_p->servptr->name);
218 +
219    if (match(tname, me.name))
220      doall = TRUE;
221    else if (!MyClient(source_p) && !strcmp(tname, me.id))

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)