diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/base.cpp | 2 | ||||
-rw-r--r-- | src/configparser.cpp | 2 | ||||
-rw-r--r-- | src/modules/extra/m_geo_maxmind.cpp | 2 | ||||
-rw-r--r-- | src/modules/extra/m_regex_pcre.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_codepage.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_delayjoin.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_ident.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_ircv3_ctctags.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 2 | ||||
-rw-r--r-- | src/users.cpp | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/src/base.cpp b/src/base.cpp index d44fcf048..1f9ba3264 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -299,7 +299,7 @@ LocalStringExt::~LocalStringExt() std::string LocalStringExt::ToInternal(const Extensible* container, void* item) const { - return item ? *static_cast<std::string*>(item) : std::string(); + return item ? *static_cast<std::string*>(item) : std::string(); } void LocalStringExt::FromInternal(Extensible* container, const std::string& value) diff --git a/src/configparser.cpp b/src/configparser.cpp index 4748fa847..94a12e6e9 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -431,7 +431,7 @@ void ParseStack::DoInclude(ConfigTag* tag, int flags) if (!FileSystem::GetFileList(includedir, files, "*.conf")) throw CoreException("Unable to read directory for include: " + includedir); - std::sort(files.begin(), files.end()); + std::sort(files.begin(), files.end()); for (std::vector<std::string>::const_iterator iter = files.begin(); iter != files.end(); ++iter) { const std::string path = includedir + '/' + *iter; diff --git a/src/modules/extra/m_geo_maxmind.cpp b/src/modules/extra/m_geo_maxmind.cpp index b03933344..0cf082775 100644 --- a/src/modules/extra/m_geo_maxmind.cpp +++ b/src/modules/extra/m_geo_maxmind.cpp @@ -179,7 +179,7 @@ class ModuleGeoMaxMind : public Module void OnGarbageCollect() CXX11_OVERRIDE { for (LocationMap::iterator iter = geoapi.locations.begin(); iter != geoapi.locations.end(); ) - { + { Geolocation::Location* location = iter->second; if (location->GetUseCount()) { diff --git a/src/modules/extra/m_regex_pcre.cpp b/src/modules/extra/m_regex_pcre.cpp index a3824d9cd..6a742dba5 100644 --- a/src/modules/extra/m_regex_pcre.cpp +++ b/src/modules/extra/m_regex_pcre.cpp @@ -28,7 +28,7 @@ /// $PackageInfo: require_system("arch") pcre /// $PackageInfo: require_system("centos") pcre-devel -/// $PackageInfo: require_system("darwin") pcre +/// $PackageInfo: require_system("darwin") pcre /// $PackageInfo: require_system("debian") libpcre3-dev /// $PackageInfo: require_system("ubuntu") libpcre3-dev diff --git a/src/modules/m_codepage.cpp b/src/modules/m_codepage.cpp index 5858acd97..1e0a248e0 100644 --- a/src/modules/m_codepage.cpp +++ b/src/modules/m_codepage.cpp @@ -133,7 +133,7 @@ class ModuleCodepage unsigned char begin = tag->getUInt("begin", tag->getUInt("index", 0), 1, UCHAR_MAX); if (!begin) throw ModuleException("<cpchars> tag without index or begin specified at " + tag->getTagLocation()); - + unsigned char end = tag->getUInt("end", begin, 1, UCHAR_MAX); if (begin > end) throw ModuleException("<cpchars:begin> must be lower than <cpchars:end> at " + tag->getTagLocation()); diff --git a/src/modules/m_delayjoin.cpp b/src/modules/m_delayjoin.cpp index a33a2a1d2..8eff602d8 100644 --- a/src/modules/m_delayjoin.cpp +++ b/src/modules/m_delayjoin.cpp @@ -78,7 +78,7 @@ class JoinHook : public ClientProtocol::EventHook } -class ModuleDelayJoin +class ModuleDelayJoin : public Module , public CTCTags::EventListener , public Names::EventListener diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 15e46b83a..c22c6a039 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -284,7 +284,7 @@ class ModuleIdent : public Module // Check that they haven't been prefixed already. if (user->ident[0] == '~') return; - + // All invalid usernames are prefixed with a tilde. std::string newident(user->ident); newident.insert(newident.begin(), '~'); diff --git a/src/modules/m_ircv3_ctctags.cpp b/src/modules/m_ircv3_ctctags.cpp index 1bb803bc2..6123d3b31 100644 --- a/src/modules/m_ircv3_ctctags.cpp +++ b/src/modules/m_ircv3_ctctags.cpp @@ -89,7 +89,7 @@ class CommandTagMsg : public Command { LocalUser* luser = IS_LOCAL(iter->first); - // Don't send to remote users or the user who is the source. + // Don't send to remote users or the user who is the source. if (!luser || luser == source) continue; diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 5e6e9b036..b688aed9f 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -215,7 +215,7 @@ void ModuleSpanningTree::ConnectServer(Link* x, Autoconnect* y) // If this fails then the IP sa will be AF_UNSPEC. irc::sockets::aptosa(x->IPAddr, x->Port, sa); } - + /* Do we already have an IP? If so, no need to resolve it. */ if (sa.family() != AF_UNSPEC) { diff --git a/src/users.cpp b/src/users.cpp index 2571d15f2..0f1ee7466 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -91,7 +91,7 @@ User::User(const std::string& uid, Server* srv, UserType type) ServerInstance->Logs->Log("USERS", LOG_DEBUG, "New UUID for user: %s", uuid.c_str()); if (srv->IsULine()) - ServerInstance->Users.all_ulines.push_back(this); + ServerInstance->Users.all_ulines.push_back(this); // Do not insert FakeUsers into the uuidlist so FindUUID() won't return them which is the desired behavior if (type != USERTYPE_SERVER) |