]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_trace.c
ShadowIRCd 6.2.0-beta1
[irc/rqf/shadowircd.git] / modules / m_trace.c
index 2f6e6c5b40f87d828073c7a5ebb338b7bc77cac8..e2c0e0b3a2be4f6b4855f2efc3e67e20cb7e8833 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_trace.c 3183 2007-02-01 01:07:42Z jilles $
  */
 
 #include "stdinc.h"
@@ -67,7 +66,6 @@ static const char *empty_sockhost = "255.255.255.255";
 
 /*
  * m_trace
- *      parv[0] = sender prefix
  *      parv[1] = servername
  */
 static int
@@ -380,18 +378,18 @@ report_this_status(struct Client *source_p, struct Client *target_p)
                break;
 
        case STAT_CLIENT:
-               int tnumeric = RPL_TRACEUSER;
-               
-               if(IsOper(target_p))
-                       tnumeric = RPL_TRACEOPERATOR;
-                       
-               sendto_one_numeric(source_p, tnumeric, form_str(tnumeric),
-                               class_name, name,
-                               show_ip(source_p, target_p) ? ip : empty_sockhost,
-                               rb_current_time() - target_p->localClient->lasttime,
-                               rb_current_time() - target_p->localClient->last);
+               {
+                       int tnumeric;
 
-               cnt++;
+                       tnumeric = IsOper(target_p) ? RPL_TRACEOPERATOR : RPL_TRACEUSER;
+                       sendto_one_numeric(source_p, tnumeric, form_str(tnumeric),
+                                       class_name, name,
+                                       show_ip(source_p, target_p) ? ip : empty_sockhost,
+                                       rb_current_time() - target_p->localClient->lasttime,
+                                       rb_current_time() - target_p->localClient->last);
+
+                       cnt++;
+               }
                break;
 
        case STAT_SERVER: