/[svn]/ircd-hybrid-7.3/modules/m_etrace.c
ViewVC logotype

Diff of /ircd-hybrid-7.3/modules/m_etrace.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1113 by michael, Sat Dec 18 22:44:10 2010 UTC revision 1114 by michael, Mon Dec 20 20:33:05 2010 UTC
# Line 41  Line 41 
41  #include "modules.h"  #include "modules.h"
42  #include "s_conf.h"  #include "s_conf.h"
43    
 #define FORM_STR_RPL_ETRACE      ":%s 709 %s %s %s %s %s %s %s :%s"  
 #define FORM_STR_RPL_ETRACE_FULL ":%s 708 %s %s %s %s %s %s %s %s %s :%s"  
44    
45  static void do_etrace(struct Client *, int, char **);  static void do_etrace(struct Client *, int, char **);
46  static void mo_etrace(struct Client *, struct Client *, int, char *[]);  static void mo_etrace(struct Client *, struct Client *, int, char *[]);
# Line 160  do_etrace(struct Client *source_p, int p Line 158  do_etrace(struct Client *source_p, int p
158   */   */
159  static void  static void
160  mo_etrace(struct Client *client_p, struct Client *source_p,  mo_etrace(struct Client *client_p, struct Client *source_p,
161            int parc, char *parv[])            int parc, char *parv[])
162  {  {
163  #ifdef STATIC_MODULES  #ifdef STATIC_MODULES
164    do_etrace(source_p, parc, parv);    do_etrace(source_p, parc, parv);
# Line 179  mo_etrace(struct Client *client_p, struc Line 177  mo_etrace(struct Client *client_p, struc
177   */   */
178  static void  static void
179  report_this_status(struct Client *source_p, struct Client *target_p,  report_this_status(struct Client *source_p, struct Client *target_p,
180                     int full_etrace)                     int full_etrace)
181  {  {
182    const char *name;    const char *name;
183    const char *class_name;    const char *class_name;
# Line 194  report_this_status(struct Client *source Line 192  report_this_status(struct Client *source
192      if (full_etrace)      if (full_etrace)
193      {      {
194        if (ConfigFileEntry.hide_spoof_ips)        if (ConfigFileEntry.hide_spoof_ips)
195          sendto_one(source_p, FORM_STR_RPL_ETRACE_FULL,          sendto_one(source_p, form_str(RPL_ETRACE_FULL),
196                     me.name,                     me.name,
197                     source_p->name,                     source_p->name,
198                     IsOper(target_p) ? "Oper" : "User",                     IsOper(target_p) ? "Oper" : "User",
# Line 207  report_this_status(struct Client *source Line 205  report_this_status(struct Client *source
205                     IsIPSpoof(target_p) ? "<hidden>" : target_p->localClient->client_server,                     IsIPSpoof(target_p) ? "<hidden>" : target_p->localClient->client_server,
206                     target_p->info);                     target_p->info);
207        else        else
208          sendto_one(source_p, FORM_STR_RPL_ETRACE_FULL,          sendto_one(source_p, form_str(RPL_ETRACE_FULL),
209                     me.name,                     me.name,
210                     source_p->name,                     source_p->name,
211                     IsOper(target_p) ? "Oper" : "User",                     IsOper(target_p) ? "Oper" : "User",
# Line 223  report_this_status(struct Client *source Line 221  report_this_status(struct Client *source
221      else      else
222      {      {
223        if (ConfigFileEntry.hide_spoof_ips)        if (ConfigFileEntry.hide_spoof_ips)
224          sendto_one(source_p, FORM_STR_RPL_ETRACE,          sendto_one(source_p, form_str(RPL_ETRACE),
225                     me.name,                     me.name,
226                     source_p->name,                     source_p->name,
227                     IsOper(target_p) ? "Oper" : "User",                     IsOper(target_p) ? "Oper" : "User",
# Line 234  report_this_status(struct Client *source Line 232  report_this_status(struct Client *source
232                     IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost,                     IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost,
233                     target_p->info);                     target_p->info);
234        else        else
235          sendto_one(source_p, FORM_STR_RPL_ETRACE,          sendto_one(source_p, form_str(RPL_ETRACE),
236                     me.name,                     me.name,
237                     source_p->name,                     source_p->name,
238                     IsOper(target_p) ? "Oper" : "User",                     IsOper(target_p) ? "Oper" : "User",

Legend:
Removed from v.1113  
changed lines
  Added in v.1114

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28