diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-11 20:09:29 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-11 20:09:29 +0000 |
commit | 2f289f057ddfd61b7c5c00f7e292b0a72f10c80c (patch) | |
tree | f725569b670078e89182f5d6363e9097e1e72d1a | |
parent | f936e5630dfd2317b3c786a454631c53e9829a0e (diff) |
Fixed more /connect bugs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@557 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index e5a47fde3..2996d5825 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -5334,15 +5334,18 @@ void handle_connect(char **parameters, int pcnt, userrec *user) for (int i = 0; i < ConfValueEnum("link",&config_f); i++) { - ConfValue("link","name",i,Link_ServerName,&config_f); - ConfValue("link","ipaddr",i,Link_IPAddr,&config_f); - ConfValue("link","port",i,Link_Port,&config_f); - ConfValue("link","sendpass",i,Link_Pass,&config_f); - log(DEBUG,"(%d) Comparing against name='%s', ipaddr='%s', port='%s', recvpass='%s'",i,Link_ServerName,Link_IPAddr,Link_Port,Link_Pass); - LinkPort = atoi(Link_Port); - if (match(Link_ServerName,parameters[0])) { - found = true; - break; + if (!found) + { + ConfValue("link","name",i,Link_ServerName,&config_f); + ConfValue("link","ipaddr",i,Link_IPAddr,&config_f); + ConfValue("link","port",i,Link_Port,&config_f); + ConfValue("link","sendpass",i,Link_Pass,&config_f); + log(DEBUG,"(%d) Comparing against name='%s', ipaddr='%s', port='%s', recvpass='%s'",i,Link_ServerName,Link_IPAddr,Link_Port,Link_Pass); + LinkPort = atoi(Link_Port); + if (match(Link_ServerName,parameters[0])) { + found = true; + break; + } } } |