Miscellaneous bugfixes from recent commits, and a file omitted from last commit.
authorMichael Poole <mdpoole@troilus.org>
Thu, 16 Dec 2004 03:33:57 +0000 (03:33 +0000)
committerMichael Poole <mdpoole@troilus.org>
Thu, 16 Dec 2004 03:33:57 +0000 (03:33 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1275 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
doc/example.conf
ircd/ircd_res.c
ircd/m_server.c
ircd/numnicks.c

index b8c43947848d0b79157bb77431dba2f3f213e1f3..6c3fcc7e7a036a8faa268a14dcfd0576616a63c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2004-12-15  Michael Poole <dmpoole@troilus.org>
+
+       * doc/example.conf: Remove the example Server blocks since they
+       are no longer used (were merged into Connect).
+
+       * ircd/ircd_res.c (restart_resolver): Fix typo in previous commit.
+
+       * ircd/m_server.c (check_loop_and_lh): Use a different argument to
+       test whether an introduced server is directly connected or not.
+
 2004-12-14  Michael Poole <mdpoole@troilus.org>
 
        * include/client.h (FLAG_IPV6): New value for enum Flag.
index b0b10f8d7d38e9586ed2251f4e353660111b3031..c652d17343d537bedee64b87e61bcb82b74a5dff 100644 (file)
@@ -436,17 +436,6 @@ UWorld {
 UWorld {
  name = "channels6.undernet.org";
 };
-Server {
- name = "Amsterdam.NL.Eu.UnderNet.org";
- mask = "*";
- hub = yes;
-};
-# An example just to make sure IRCnet doesn't get on undernet...
-Server {
- name = "*";
- mask = "eris.berkeley.edu";
- hub = yes;
-};
 
 # As of ircu2.10.05 is it possible to Jupe nicks. As per CFV-0095, the
 # following nicks must be juped, it is not allowed to jupe others as well.
index a37654931a9c59499b9c60f890d0eb66b4055a48..0ce4fd60b4c86e32407efd359d3c4c467889d0ef 100644 (file)
@@ -175,7 +175,7 @@ restart_resolver(void)
   {
     struct irc_sockaddr *local;
     int fd;
-    local = irc_in_addr_valid(&ResolverAddr) ? &ResolverAddr : &VirtualHost;
+    local = irc_in_addr_valid(&ResolverAddr.addr) ? &ResolverAddr : &VirtualHost;
     fd = os_socket(local, SOCK_DGRAM, "Resolver UDP socket");
     if (fd < 0) return;
     if (!socket_add(&res_socket, res_readreply, NULL, SS_DATAGRAM,
index af7a010a80a6d1a597206d665984663fe4d2301b..6efe6bd37c7074fdb98dfdc97c30c78f35f56ab8 100644 (file)
@@ -125,7 +125,7 @@ check_loop_and_lh(struct Client* cptr, struct Client *sptr, time_t *ghost, const
    */
   lhconf = find_conf_byname(cli_confs(cptr), cli_name(cptr), CONF_SERVER);
   assert(lhconf != NULL);
-  if (cptr == sptr)
+  if (ghost)
   {
     if (!feature_bool(FEAT_HUB))
       for (ii = 0; ii <= HighestFd; ii++)
index 931c1ca83b0eb53f38f54bca93fbf5e317f18521..1e41917375fa2a9bffb6e13f1c35288a0bd98a22 100644 (file)
@@ -440,11 +440,14 @@ struct Client* find_match_server(char *mask)
  * @param[in] addr IP address to encode.
  * @param[in] count Number of bytes writable to \a buf.
  */
-const char* iptobase64(char* buf, const struct irc_in_addr* addr, unsigned int count)
+const char* iptobase64(char* buf, const struct irc_in_addr* addr, unsigned int count, int v6_ok)
 {
   if (irc_in_addr_is_ipv4(addr)) {
     assert(count >= 6);
     inttobase64(buf, (htons(addr->in6_16[6]) << 16) | htons(addr->in6_16[7]), 6);
+  } else if (!v6_ok) {
+    assert(count >= 6);
+    strcpy(buf, "AAAAAA");
   } else {
     unsigned int max_start, max_zeros, curr_zeros, zero, ii;
     char *output = buf;