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

Comparing ircd-hybrid-7.2/modules/m_etrace.c (file contents):
Revision 856 by db, Tue Feb 27 02:58:49 2007 UTC vs.
Revision 891 by michael, Thu Nov 1 13:44:50 2007 UTC

# Line 40 | Line 40
40   #include "parse.h"
41   #include "modules.h"
42   #include "s_conf.h"
43 #include "irc_getnameinfo.h"
43  
44   #define FORM_STR_RPL_ETRACE      ":%s 709 %s %s %s %s %s %s %s :%s"
45   #define FORM_STR_RPL_ETRACE_FULL ":%s 708 %s %s %s %s %s %s %s %s %s :%s"
# Line 134 | Line 133 | do_etrace(struct Client *source_p, int p
133        report_this_status(source_p, target_p, full_etrace);
134        
135      sendto_one(source_p, form_str(RPL_ENDOFTRACE), me.name,
136 <               source_p->name, tname);
136 >               source_p->name, tname);
137      return;
138    }
139  
# Line 145 | Line 144 | do_etrace(struct Client *source_p, int p
144      if (wilds)
145      {
146        if (match(tname, target_p->name) || match(target_p->name, tname))
147 <        report_this_status(source_p, target_p, full_etrace);
147 >        report_this_status(source_p, target_p, full_etrace);
148      }
149      else
150        report_this_status(source_p, target_p, full_etrace);
151    }
152  
153    sendto_one(source_p, form_str(RPL_ENDOFTRACE), me.name,
154 <             source_p->name, tname);
154 >             source_p->name, tname);
155   }
156  
157   /* mo_etrace()
# Line 184 | Line 183 | report_this_status(struct Client *source
183   {
184    const char *name;
185    const char *class_name;
187  char ip[HOSTIPLEN];
188
189  /* Should this be sockhost? - stu */
190  irc_getnameinfo((struct sockaddr*)&target_p->localClient->ip,
191        target_p->localClient->ip.ss_len, ip, HOSTIPLEN, NULL, 0,
192        NI_NUMERICHOST);
186  
187    name = get_client_name(target_p, HIDE_IP);
188    class_name = get_client_class(target_p);
# Line 209 | Line 202 | report_this_status(struct Client *source
202                     target_p->name,
203                     target_p->username,
204                     target_p->host,
205 <                   IsIPSpoof(target_p) ? "255.255.255.255" : ip,
205 >                   IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost,
206                     IsIPSpoof(target_p) ? "<hidden>" : target_p->client_host,
207                     IsIPSpoof(target_p) ? "<hidden>" : target_p->client_server,
208                     target_p->info);
# Line 222 | Line 215 | report_this_status(struct Client *source
215                     target_p->name,
216                     target_p->username,
217                     target_p->host,
218 <                   ip,
218 >                   target_p->sockhost,
219                     target_p->client_host,
220                     target_p->client_server,
221                     target_p->info);
# Line 238 | Line 231 | report_this_status(struct Client *source
231                     target_p->name,
232                     target_p->username,
233                     target_p->host,
234 <                   IsIPSpoof(target_p) ? "255.255.255.255" : ip,
234 >                   IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost,
235                     target_p->info);
236        else
237          sendto_one(source_p, FORM_STR_RPL_ETRACE,
# Line 249 | Line 242 | report_this_status(struct Client *source
242                     target_p->name,
243                     target_p->username,
244                     target_p->host,
245 <                   ip,
245 >                   target_p->sockhost,
246                     target_p->info);
247      }
248    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines