X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fs_serv.c;h=abcf6aa55b66825e333e7f8c26fa9c7368d1807f;hb=refs%2Fheads%2Fupstream;hp=1da2bfdd3679ebbd1ba759e5ba0317c9ad198901;hpb=87adb627f71f9157a179c5f0c2f59a8e0ef8db1c;p=ircu2.10.12-pk.git diff --git a/ircd/s_serv.c b/ircd/s_serv.c index 1da2bfd..abcf6aa 100644 --- a/ircd/s_serv.c +++ b/ircd/s_serv.c @@ -34,6 +34,7 @@ #include "hash.h" #include "ircd.h" #include "ircd_alloc.h" +#include "ircd_log.h" #include "ircd_reply.h" #include "ircd_string.h" #include "ircd_snprintf.h" @@ -57,7 +58,7 @@ #include "sys.h" #include "userload.h" -#include +/* #include -- Now using assert in ircd_log.h */ #include #include @@ -127,17 +128,11 @@ int server_estab(struct Client *cptr, struct ConfItem *aconf) /* * Pass my info to the new server */ - sendrawto_one(cptr, MSG_SERVER " %s 1 %Tu %Tu J%s %s%s +%s :%s", + sendrawto_one(cptr, MSG_SERVER " %s 1 %Tu %Tu J%s %s%s +%s6 :%s", cli_name(&me), cli_serv(&me)->timestamp, cli_serv(cptr)->timestamp, MAJOR_PROTOCOL, NumServCap(&me), feature_bool(FEAT_HUB) ? "h" : "", *(cli_info(&me)) ? cli_info(&me) : "IRCers United"); - /* - * Don't charge this IP# for connecting - * XXX - if this comes from a server port, it will not have been added - * to the IP check registry, see add_connection in s_bsd.c - */ - IPcheck_connect_fail(&cli_ip(cptr)); } det_confs_butmask(cptr, CONF_SERVER | CONF_UWORLD); @@ -147,9 +142,6 @@ int server_estab(struct Client *cptr, struct ConfItem *aconf) SetServer(cptr); cli_handler(cptr) = SERVER_HANDLER; Count_unknownbecomesserver(UserStats); - - release_dns_reply(cptr); - SetBurst(cptr); /* nextping = CurrentTime; */ @@ -192,10 +184,10 @@ int server_estab(struct Client *cptr, struct ConfItem *aconf) if (!match(cli_name(&me), cli_name(cptr))) continue; sendcmdto_one(&me, CMD_SERVER, acptr, - "%s 2 0 %Tu J%02u %s%s +%s%s :%s", cli_name(cptr), + "%s 2 0 %Tu J%02u %s%s +%s%s%s :%s", cli_name(cptr), cli_serv(cptr)->timestamp, Protocol(cptr), NumServCap(cptr), IsHub(cptr) ? "h" : "", IsService(cptr) ? "s" : "", - cli_info(cptr)); + IsIPv6(cptr) ? "6" : "", cli_info(cptr)); } /* Send these as early as possible so that glined users/juped servers can @@ -209,8 +201,8 @@ int server_estab(struct Client *cptr, struct ConfItem *aconf) * Pass on my client information to the new server * * First, pass only servers (idea is that if the link gets - * cancelled beacause the server was already there, - * there are no NICK's to be cancelled...). Of course, + * canceled because the server was already there, + * there are no NICK's to be canceled...). Of course, * if cancellation occurs, all this info is sent anyway, * and I guess the link dies when a read is attempted...? --msa * @@ -235,11 +227,11 @@ int server_estab(struct Client *cptr, struct ConfItem *aconf) if (0 == match(cli_name(&me), cli_name(acptr))) continue; sendcmdto_one(cli_serv(acptr)->up, CMD_SERVER, cptr, - "%s %d 0 %Tu %s%u %s%s +%s%s :%s", cli_name(acptr), + "%s %d 0 %Tu %s%u %s%s +%s%s%s :%s", cli_name(acptr), cli_hopcount(acptr) + 1, cli_serv(acptr)->timestamp, protocol_str, Protocol(acptr), NumServCap(acptr), IsHub(acptr) ? "h" : "", IsService(acptr) ? "s" : "", - cli_info(acptr)); + IsIPv6(acptr) ? "6" : "", cli_info(acptr)); } } @@ -257,7 +249,7 @@ int server_estab(struct Client *cptr, struct ConfItem *aconf) cli_name(acptr), cli_hopcount(acptr) + 1, cli_lastnick(acptr), cli_user(acptr)->username, cli_user(acptr)->realhost, *s ? "+" : "", s, *s ? " " : "", - iptobase64(xxx_buf, &cli_ip(acptr), sizeof(xxx_buf)), + iptobase64(xxx_buf, &cli_ip(acptr), sizeof(xxx_buf), IsIPv6(cptr)), NumNick(acptr), cli_info(acptr)); } }