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", |
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 |
* |
* |
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 |
|
|
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 |