From 75a08a2d94537fa88fa64bea1c197c4e79cc8743 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 24 May 2005 05:01:22 +0000 Subject: Autoconnect/typo fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1489 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 2ee4ca577..3fa701563 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2518,7 +2518,7 @@ bool LoadModule(const char* filename) } -void GotServer(std::string name) +bool GotServer(std::string name) { for (int j = 0; j < 32; j++) { @@ -2526,7 +2526,7 @@ void GotServer(std::string name) { for (int k = 0; k < me[j]->connectors.size(); k++) { - if (name == me[j]->connectors.GetServerName()) + if (name == me[j]->connectors[k].GetServerName()) { return true; } @@ -2846,9 +2846,9 @@ int InspIRCd(char** argv, int argc) char Link_ServerName[MAXBUF],Link_AConn[MAXBUF]; ConfValue("link","name",i,Link_ServerName,&config_f); ConfValue("link","autoconnect",i,Link_AConn,&config_f); - if (Link_AConn[0]) && (!GotServer(Link_ServerName)) + if ((Link_AConn[0]) && (!GotServer(Link_ServerName))) { - autoconnects::iterator a = autoconns.find(Link_ServerName); + autoconnects::iterator a = autoconns.find(std::string(Link_ServerName)); if (a != autoconns.end()) { if (TIME > a->second) -- cgit v1.2.3