Look up server configuration by directly connected server name.
authorMichael Poole <mdpoole@troilus.org>
Sun, 17 Oct 2004 00:47:08 +0000 (00:47 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sun, 17 Oct 2004 00:47:08 +0000 (00:47 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1246 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_server.c

index f0f515651f2c5ac13c46e2561068de9db11c5df8..7d00811887a6014690d4be406c526c879629fd0a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-16  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/m_server.c: Look up server configuration by name of our
+       directly connected peer rather than the server being introduced.
+
 2004-10-13  Michael Poole <mdpoole@troilus.org>
 
        * include/channel.h: Delete MODE_LISTED and is_listed().  Replace
index 7cd638ee0a4c9c07346a28ceca3c25831b1cffe0..9708cda421cce8be1dab77dba9a225e1175a109a 100644 (file)
@@ -123,7 +123,7 @@ check_loop_and_lh(struct Client* cptr, struct Client *sptr, time_t *ghost, const
   /*
    * Calculate type of connect limit and applicable config item.
    */
-  lhconf = find_conf_byname(cli_confs(cptr), host, CONF_SERVER);
+  lhconf = find_conf_byname(cli_confs(cptr), cli_name(cptr), CONF_SERVER);
   assert(lhconf != NULL);
   if (cptr == sptr)
   {