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

Comparing ircd-hybrid/trunk/modules/m_etrace.c (file contents):
Revision 7046 by michael, Sat Jan 9 20:13:59 2016 UTC vs.
Revision 7910 by michael, Sun Nov 27 16:59:35 2016 UTC

# Line 69 | Line 69 | do_etrace(struct Client *source_p, const
69   {
70    const char *tname = NULL;
71    unsigned int wilds = 0, do_all = 0;
72 <  const dlink_node *node = NULL;
72 >  dlink_node *node;
73  
74    sendto_realops_flags(UMODE_SPY, L_ALL, SEND_NOTICE,
75                         "ETRACE requested by %s (%s@%s) [%s]",
76                         source_p->name, source_p->username,
77                         source_p->host, source_p->servptr->name);
78  
79 <  if (!EmptyString(arg))
79 >  if (EmptyString(arg))
80    {
81 <    tname = arg;
82 <    wilds = has_wildcards(tname);
81 >    do_all = 1;
82 >    tname = "*";
83    }
84    else
85    {
86 <    do_all = 1;
87 <    tname = "*";
86 >    tname = arg;
87 >    wilds = has_wildcards(tname);
88    }
89  
90    if (!wilds && !do_all)

Diff Legend

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