/[svn]/ircd-hybrid-8/modules/core/m_server.c
ViewVC logotype

Diff of /ircd-hybrid-8/modules/core/m_server.c

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

revision 1528 by michael, Fri Sep 14 18:20:34 2012 UTC revision 1529 by michael, Sun Sep 16 10:27:19 2012 UTC
# Line 253  ms_server(struct Client *client_p, struc Line 253  ms_server(struct Client *client_p, struc
253       * doesnt exist, although ircd can handle it, its not a realistic       * doesnt exist, although ircd can handle it, its not a realistic
254       * solution.. --fl_       * solution.. --fl_
255       */       */
     /* It is behind a host-masked server. Completely ignore the  
      * server message(don't propagate or we will delink from whoever  
      * we propagate to). -A1kmm  
      */  
     if (irccmp(target_p->name, name) && target_p->from == client_p)  
       return;  
   
256      sendto_one(client_p, "ERROR :Server %s already exists", name);      sendto_one(client_p, "ERROR :Server %s already exists", name);
257      sendto_realops_flags(UMODE_ALL, L_ADMIN,      sendto_realops_flags(UMODE_ALL, L_ADMIN,
258                           "Link %s cancelled, server %s already exists",                           "Link %s cancelled, server %s already exists",
# Line 286  ms_server(struct Client *client_p, struc Line 279  ms_server(struct Client *client_p, struc
279     */     */
280    DLINK_FOREACH(ptr, aconf->leaf_list.head)    DLINK_FOREACH(ptr, aconf->leaf_list.head)
281      if (match(ptr->data, name))      if (match(ptr->data, name))
282        llined = 1, break;      {
283          llined = 1;
284          break;
285        }
286    
287    DLINK_FOREACH(ptr, aconf->hub_list.head)    DLINK_FOREACH(ptr, aconf->hub_list.head)
288      if (match(ptr->data, name))      if (match(ptr->data, name))
289        hlined = 1, break;      {
290          hlined = 1;
291          break;
292        }
293    
294    /* Ok, this way this works is    /* Ok, this way this works is
295     *     *
# Line 444  ms_sid(struct Client *client_p, struct C Line 443  ms_sid(struct Client *client_p, struct C
443      sendto_realops_flags(UMODE_ALL, L_OPER,      sendto_realops_flags(UMODE_ALL, L_OPER,
444                           "Link %s cancelled, SID %s already exists",                           "Link %s cancelled, SID %s already exists",
445                           client_p->name, parv[3]);                           client_p->name, parv[3]);
446      exit_client(client_p, &me, "Server Exists");      exit_client(client_p, &me, "SID Exists");
447      return;      return;
448    }    }
449    
# Line 477  ms_sid(struct Client *client_p, struct C Line 476  ms_sid(struct Client *client_p, struct C
476     */     */
477    DLINK_FOREACH(ptr, aconf->leaf_list.head)    DLINK_FOREACH(ptr, aconf->leaf_list.head)
478      if (match(ptr->data, parv[1]))      if (match(ptr->data, parv[1]))
479        llined = 1, break;      {
480          llined = 1;
481          break;
482        }
483    
484    DLINK_FOREACH(ptr, aconf->hub_list.head)    DLINK_FOREACH(ptr, aconf->hub_list.head)
485      if (match(ptr->data, parv[1]))      if (match(ptr->data, parv[1]))
486        hlined = 1, break;      {
487          hlined = 1;
488          break;
489        }
490    
491    
492    /* Ok, this way this works is    /* Ok, this way this works is

Legend:
Removed from v.1528  
changed lines
  Added in v.1529

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