summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-24 05:01:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-24 05:01:22 +0000
commit75a08a2d94537fa88fa64bea1c197c4e79cc8743 (patch)
tree5937f92e9deb6779676e5141bdfb9d63cfc924bb /src
parent99f6f5c9f7227f09b457fcdb938f3b26a76a1eda (diff)
Autoconnect/typo fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1489 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp8
1 files 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)