diff options
| author | 2004-05-29 14:46:18 +0000 | |
|---|---|---|
| committer | 2004-05-29 14:46:18 +0000 | |
| commit | b12617d293455e80d330d54e7d59bca57afdb0a0 (patch) | |
| tree | 13abad867f69ee7ee6b52370e9799d684942f029 /src/commands.cpp | |
| parent | Added m_botmode, module that provides unreal style +B and the SWHOIS that goe... (diff) | |
| download | inspircd++-b12617d293455e80d330d54e7d59bca57afdb0a0.tar.gz inspircd++-b12617d293455e80d330d54e7d59bca57afdb0a0.tar.bz2 inspircd++-b12617d293455e80d330d54e7d59bca57afdb0a0.zip | |
Fixed uline synching
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@833 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
| -rw-r--r-- | src/commands.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index ff9a5e41c..7d8523ece 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1911,6 +1911,23 @@ void handle_H(char token,char* params,serverrec* source,serverrec* reply, char* ircd_connector s; s.SetState(STATE_DISCONNECTED); s.SetServerName(params); + + for (int j = 0; j < 32; j++) + { + if (me[j] != NULL) + { + for (int k = 0; k < me[j]->connectors.size(); k++) + { + if (!strcasecmp(me[j]->connectors[k].GetServerName().c_str(),params)) + { + // dont allow a server to be added twice + log(DEBUG,"ULined server %s already in the map!",params); + return; + } + } + } + } + source->connectors.push_back(s); WriteOpers("Non-Mesh server %s has joined the network",params); } |
