/[svn]/ircd-hybrid/branches/8.2.x/src/server.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/src/server.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6060 by michael, Fri Apr 17 16:09:23 2015 UTC revision 6061 by michael, Sat Jun 6 17:23:12 2015 UTC
# Line 177  hunt_server(struct Client *source_p, con Line 177  hunt_server(struct Client *source_p, con
177    
178    if (!target_p && has_wildcards(parv[server]))    if (!target_p && has_wildcards(parv[server]))
179    {    {
180      DLINK_FOREACH(node, global_client_list.head)      DLINK_FOREACH(node, global_server_list.head)
181      {      {
182        struct Client *tmp = node->data;        struct Client *tmp = node->data;
183    
184        assert(IsMe(tmp) || IsServer(tmp) || IsClient(tmp));        assert(IsMe(tmp) || IsServer(tmp));
185        if (!match(parv[server], tmp->name))        if (!match(parv[server], tmp->name))
186        {        {
187          if (tmp->from == source_p->from && !MyConnect(tmp))          if (tmp->from == source_p->from && !MyConnect(tmp))
# Line 191  hunt_server(struct Client *source_p, con Line 191  hunt_server(struct Client *source_p, con
191          break;          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)    if (target_p)

Legend:
Removed from v.6060  
changed lines
  Added in v.6061

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28