- /* Only opers see users if there is a wildcard
- * but anyone can see all the opers.
- */
- if((IsOper(source_p) &&
- (MyClient(source_p) || !(dow && IsInvisible(target_p))))
- || !dow || IsOper(target_p) || (source_p == target_p))
- {
- 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);
- cnt++;
- }
- break;
+ {
+ /* fire the doing_trace_show_idle hook to allow modules to tell us whether to show the idle time */
+ hook_data_client_approval hdata_showidle;
+
+ hdata_showidle.client = source_p;
+ hdata_showidle.target = target_p;
+ hdata_showidle.approved = WHOIS_IDLE_SHOW;
+
+ call_hook(doing_trace_show_idle_hook, &hdata_showidle);