diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_oper/core_oper.cpp | 3 | ||||
-rw-r--r-- | src/coremods/core_serialize_rfc.cpp | 2 | ||||
-rw-r--r-- | src/coremods/core_whois.cpp | 2 | ||||
-rw-r--r-- | src/inspstring.cpp | 1 | ||||
-rw-r--r-- | src/mode.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_cgiirc.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_cloaking.cpp | 12 | ||||
-rw-r--r-- | src/modules/m_hostchange.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_ircv3_sts.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_showwhois.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/uid.cpp | 2 | ||||
-rw-r--r-- | src/socket.cpp | 2 | ||||
-rw-r--r-- | src/users.cpp | 2 |
13 files changed, 19 insertions, 21 deletions
diff --git a/src/coremods/core_oper/core_oper.cpp b/src/coremods/core_oper/core_oper.cpp index d4afab3b8..be4b87714 100644 --- a/src/coremods/core_oper/core_oper.cpp +++ b/src/coremods/core_oper/core_oper.cpp @@ -42,9 +42,8 @@ class CoreModOper : public Module void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { - ConfigTag* tag = ServerInstance->Config->ConfValue("power"); - + // The hash method for *BOTH* the die and restart passwords powerhash = tag->getString("hash"); diff --git a/src/coremods/core_serialize_rfc.cpp b/src/coremods/core_serialize_rfc.cpp index 23a4c2052..6b693bfb9 100644 --- a/src/coremods/core_serialize_rfc.cpp +++ b/src/coremods/core_serialize_rfc.cpp @@ -59,7 +59,7 @@ bool RFCSerializer::Parse(LocalUser* user, const std::string& line, ClientProtoc // Work out how long the message can actually be. size_t maxline = ServerInstance->Config->Limits.MaxLine - start - 2; if (line[start] == '@') - maxline += MAX_CLIENT_MESSAGE_TAG_LENGTH + 1; + maxline += MAX_CLIENT_MESSAGE_TAG_LENGTH + 1; irc::tokenstream tokens(line, start, maxline); ServerInstance->Logs->Log("USERINPUT", LOG_RAWIO, "C[%s] I %s", user->uuid.c_str(), tokens.GetMessage().c_str()); diff --git a/src/coremods/core_whois.cpp b/src/coremods/core_whois.cpp index 0db634810..880e5a533 100644 --- a/src/coremods/core_whois.cpp +++ b/src/coremods/core_whois.cpp @@ -365,7 +365,7 @@ class CoreModWhois : public Module else if (stdalgo::string::equalsci(splitwhois, "splitmsg")) newsplitstate = SPLITWHOIS_SPLITMSG; else - throw ModuleException(splitwhois + " is an invalid <security:splitwhois> value, at " + tag->getTagLocation()); + throw ModuleException(splitwhois + " is an invalid <security:splitwhois> value, at " + tag->getTagLocation()); ConfigTag* security = ServerInstance->Config->ConfValue("security"); cmd.genericoper = security->getBool("genericoper"); diff --git a/src/inspstring.cpp b/src/inspstring.cpp index 79aef52bd..faf34be91 100644 --- a/src/inspstring.cpp +++ b/src/inspstring.cpp @@ -136,7 +136,6 @@ void TokenList::AddList(const std::string& tokenlist) else Add(token); } - } void TokenList::Add(const std::string& token) { diff --git a/src/mode.cpp b/src/mode.cpp index 459eb21c8..50dd05d2d 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -607,7 +607,7 @@ void ModeParser::AddMode(ModeHandler* mh) if ((mh->GetModeType() == MODETYPE_USER) || (mh->IsParameterMode()) || (!mh->IsListMode())) modeid = AllocateModeId(mh->GetModeType()); - std::pair<ModeHandlerMap::iterator, bool> res = modehandlersbyname[mh->GetModeType()].insert(std::make_pair(mh->name, mh)); + std::pair<ModeHandlerMap::iterator, bool> res = modehandlersbyname[mh->GetModeType()].insert(std::make_pair(mh->name, mh)); if (!res.second) { ModeHandler* othermh = res.first->second; diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index df8201bde..4c89ad894 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -311,7 +311,7 @@ class ModuleCgiIRC } else { - throw ModuleException(type + " is an invalid <cgihost:mask> type, at " + tag->getTagLocation()); + throw ModuleException(type + " is an invalid <cgihost:mask> type, at " + tag->getTagLocation()); } } @@ -369,7 +369,7 @@ class ModuleCgiIRC user->ChangeIdent(newident); user->SetClientIP(address); - break; + break; } return MOD_RES_PASSTHRU; } diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 3b00d3347..d9b2eb789 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -210,24 +210,24 @@ class ModuleCloaking : public Module { // The position at which we found the last dot. std::string::const_reverse_iterator dotpos; - + // The number of dots we have seen so far. unsigned int seendots = 0; - + for (std::string::const_reverse_iterator iter = host.rbegin(); iter != host.rend(); ++iter) { if (*iter != '.') continue; - + // We have found a dot! dotpos = iter; seendots += 1; - + // Do we have enough segments to stop? if (seendots >= domainparts) break; } - + // We only returns a domain part if more than one label is // present. See above for a full explanation. if (!seendots) @@ -435,7 +435,7 @@ class ModuleCloaking : public Module else if (stdalgo::string::equalsci(mode, "full")) newcloaks.push_back(CloakInfo(MODE_OPAQUE, key, prefix, suffix)); else - throw ModuleException(mode + " is an invalid value for <cloak:mode>; acceptable values are 'half' and 'full', at " + tag->getTagLocation()); + throw ModuleException(mode + " is an invalid value for <cloak:mode>; acceptable values are 'half' and 'full', at " + tag->getTagLocation()); } // The cloak configuration was valid so we can apply it. diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp index 4c9b24140..be503ba6b 100644 --- a/src/modules/m_hostchange.cpp +++ b/src/modules/m_hostchange.cpp @@ -34,7 +34,7 @@ class HostRule // Add the user's nickname to their hostname. HCA_ADDNICK, - // Set the user's hostname to the specific value. + // Set the user's hostname to the specific value. HCA_SET }; @@ -168,7 +168,7 @@ private: } else { - throw ModuleException(action + " is an invalid <hostchange:action> type, at " + tag->getTagLocation()); + throw ModuleException(action + " is an invalid <hostchange:action> type, at " + tag->getTagLocation()); } } diff --git a/src/modules/m_ircv3_sts.cpp b/src/modules/m_ircv3_sts.cpp index cbfdd1307..a8738b2ac 100644 --- a/src/modules/m_ircv3_sts.cpp +++ b/src/modules/m_ircv3_sts.cpp @@ -130,7 +130,7 @@ class ModuleIRCv3STS : public Module for (std::vector<ListenSocket*>::const_iterator iter = ServerInstance->ports.begin(); iter != ServerInstance->ports.end(); ++iter) { ListenSocket* ls = *iter; - + // Is this listener on the right port? unsigned int saport = ls->bind_sa.port(); if (saport != port) diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index d01e1a83b..70c149273 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -51,7 +51,7 @@ class WhoisNoticeCmd : public Command void HandleFast(User* dest, User* src) { dest->WriteNotice("*** " + src->nick + " (" + src->ident + "@" + - src->GetHost(dest->HasPrivPermission("users/auspex")) + + src->GetHost(dest->HasPrivPermission("users/auspex")) + ") did a /whois on you"); } diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp index 01af56fa6..0729065fc 100644 --- a/src/modules/m_spanningtree/uid.cpp +++ b/src/modules/m_spanningtree/uid.cpp @@ -134,7 +134,7 @@ CmdResult CommandUID::HandleServer(TreeServer* remoteserver, CommandBase::Params } CmdResult CommandFHost::HandleRemote(RemoteUser* src, Params& params) -{ +{ src->ChangeDisplayedHost(params[0]); return CMD_SUCCESS; } diff --git a/src/socket.cpp b/src/socket.cpp index d48a1907c..b33664f84 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -39,7 +39,7 @@ bool InspIRCd::BindPort(ConfigTag* tag, const irc::sockets::sockaddrs& sa, std:: return true; } } - + ListenSocket* ll = new ListenSocket(tag, sa); if (ll->GetFd() < 0) { diff --git a/src/users.cpp b/src/users.cpp index 506cdf6d8..fd794d386 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1026,7 +1026,7 @@ void User::ChangeRealHost(const std::string& host, bool resetdisplay) const bool changehost = (realhost != host); if (!changehost && !resetdisplay) return; - + // If the displayhost is not set and we are not resetting it then // we need to copy it to the displayhost field. if (displayhost.empty() && !resetdisplay) |