ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/server.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/server.c (file contents):
Revision 5795 by michael, Fri Apr 17 16:09:23 2015 UTC vs.
Revision 6061 by michael, Sat Jun 6 17:23:12 2015 UTC

# Line 177 | Line 177 | hunt_server(struct Client *source_p, con
177  
178    if (!target_p && has_wildcards(parv[server]))
179    {
180 <    DLINK_FOREACH(node, global_client_list.head)
180 >    DLINK_FOREACH(node, global_server_list.head)
181      {
182        struct Client *tmp = node->data;
183  
184 <      assert(IsMe(tmp) || IsServer(tmp) || IsClient(tmp));
184 >      assert(IsMe(tmp) || IsServer(tmp));
185        if (!match(parv[server], tmp->name))
186        {
187          if (tmp->from == source_p->from && !MyConnect(tmp))
# Line 191 | Line 191 | hunt_server(struct Client *source_p, con
191          break;
192        }
193      }
194 +
195 +    if (!target_p)
196 +    {
197 +      DLINK_FOREACH(node, global_client_list.head)
198 +      {
199 +        struct Client *tmp = node->data;
200 +
201 +        assert(IsMe(tmp) || IsServer(tmp) || IsClient(tmp));
202 +        if (!match(parv[server], tmp->name))
203 +        {
204 +          if (tmp->from == source_p->from && !MyConnect(tmp))
205 +            continue;
206 +
207 +          target_p = node->data;
208 +          break;
209 +        }
210 +      }
211 +    }
212    }
213  
214    if (target_p)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines