diff options
author | Robby <robby@chatbelgie.be> | 2017-01-17 05:03:25 +0100 |
---|---|---|
committer | Robby <robby@chatbelgie.be> | 2017-01-17 05:03:25 +0100 |
commit | 76ce8ece1a4803c98bfe9460f40bf8e0fbc409e6 (patch) | |
tree | 26e6da47f20de64ef76fe4afc459bbb7889bd417 /src/servers.cpp | |
parent | 464093d36e87f3df999145e42ed30fc0dfc55c52 (diff) |
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
Diffstat (limited to 'src/servers.cpp')
-rw-r--r-- | src/servers.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/servers.cpp b/src/servers.cpp index 59be5c1af..ffba8ecb1 100644 --- a/src/servers.cpp +++ b/src/servers.cpp @@ -80,7 +80,7 @@ Server::Server(Server *up, const Anope::string &sname, unsigned shops, const Ano } IRCD->SendBOB(); - + for (unsigned i = 0; i < Me->GetLinks().size(); ++i) { Server *s = Me->GetLinks()[i]; @@ -157,7 +157,7 @@ Server::~Server() for (unsigned i = this->links.size(); i > 0; --i) this->links[i - 1]->Delete(this->quit_reason); - + Servers::ByName.erase(this->name); if (!this->sid.empty()) Servers::ByID.erase(this->sid); @@ -336,18 +336,18 @@ void Server::Notice(BotInfo *source, const Anope::string &message) Server *Server::Find(const Anope::string &name, bool name_only) { Anope::map<Server *>::iterator it; - + if (!name_only) { it = Servers::ByID.find(name); if (it != Servers::ByID.end()) return it->second; } - + it = Servers::ByName.find(name); if (it != Servers::ByName.end()) return it->second; - + return NULL; } @@ -358,4 +358,3 @@ Server* Servers::GetUplink() return Me->GetLinks()[i]; return NULL; } - |