From 4f9abe96a4301a740d4a5fd7932550d88d60a3fc Mon Sep 17 00:00:00 2001 From: InspIRCd Robot Date: Tue, 21 Apr 2020 06:34:17 +0000 Subject: Fixes by misspell-fixer --- src/cidr.cpp | 2 +- src/command_parse.cpp | 4 ++-- src/coremods/core_channel/cmode_k.cpp | 2 +- src/coremods/core_oper/cmd_kill.cpp | 2 +- src/coremods/core_serialize_rfc.cpp | 2 +- src/coremods/core_whois.cpp | 4 ++-- src/helperfuncs.cpp | 2 +- src/inspircd.cpp | 6 +++--- src/modules.cpp | 4 ++-- src/modules/extra/m_mysql.cpp | 6 +++--- src/modules/extra/m_pgsql.cpp | 2 +- src/modules/m_alias.cpp | 2 +- src/modules/m_callerid.cpp | 6 +++--- src/modules/m_dccallow.cpp | 2 +- src/modules/m_filter.cpp | 2 +- src/modules/m_httpd.cpp | 2 +- src/modules/m_ident.cpp | 4 ++-- src/modules/m_ircv3_capnotify.cpp | 2 +- src/modules/m_permchannels.cpp | 4 ++-- src/modules/m_spanningtree/capab.cpp | 2 +- src/modules/m_spanningtree/commands.h | 2 +- src/modules/m_spanningtree/ftopic.cpp | 2 +- src/modules/m_spanningtree/main.cpp | 2 +- src/modules/m_spanningtree/main.h | 2 +- src/modules/m_spanningtree/override_map.cpp | 4 ++-- src/modules/m_spanningtree/resolvers.cpp | 2 +- src/modules/m_spanningtree/resolvers.h | 2 +- src/modules/m_spanningtree/treeserver.cpp | 2 +- src/modules/m_spanningtree/treesocket2.cpp | 2 +- src/modules/m_spanningtree/uid.cpp | 2 +- src/modules/m_sslmodes.cpp | 2 +- src/modules/m_userip.cpp | 2 +- src/modules/m_xline_db.cpp | 2 +- src/snomasks.cpp | 2 +- src/users.cpp | 2 +- src/xline.cpp | 4 ++-- 36 files changed, 49 insertions(+), 49 deletions(-) (limited to 'src') diff --git a/src/cidr.cpp b/src/cidr.cpp index 31546dae2..f45c63b98 100644 --- a/src/cidr.cpp +++ b/src/cidr.cpp @@ -37,7 +37,7 @@ bool irc::sockets::MatchCIDR(const std::string &address, const std::string &cidr /* The caller is trying to match ident@/bits. * Chop off the ident@ portion, use match() on it - * seperately. + * separately. */ if (match_with_username) { diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 717431087..d3befc6c0 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -231,7 +231,7 @@ void CommandParser::ProcessCommand(LocalUser* user, std::string& command, Comman // Iterator to the first excess parameter const CommandBase::Params::iterator firstexcess = lastkeep + 1; - // Append all excess parameter(s) to the last parameter, seperated by spaces + // Append all excess parameter(s) to the last parameter, separated by spaces for (CommandBase::Params::const_iterator i = firstexcess; i != command_p.end(); ++i) { lastkeep->push_back(' '); @@ -243,7 +243,7 @@ void CommandParser::ProcessCommand(LocalUser* user, std::string& command, Comman } /* - * We call OnPreCommand here seperately if the command exists, so the magic above can + * We call OnPreCommand here separately if the command exists, so the magic above can * truncate to max_params if necessary. -- w00t */ ModResult MOD_RESULT; diff --git a/src/coremods/core_channel/cmode_k.cpp b/src/coremods/core_channel/cmode_k.cpp index 5563c0072..ea4b5241d 100644 --- a/src/coremods/core_channel/cmode_k.cpp +++ b/src/coremods/core_channel/cmode_k.cpp @@ -45,7 +45,7 @@ ModeAction ModeChannelKey::OnModeChange(User* source, User*, Channel* channel, s return MODEACTION_DENY; if (exists && (parameter != *key)) { - /* Key is currently set and the correct key wasnt given */ + /* Key is currently set and the correct key wasn't given */ return MODEACTION_DENY; } } else { diff --git a/src/coremods/core_oper/cmd_kill.cpp b/src/coremods/core_oper/cmd_kill.cpp index 6b356d011..13d6be558 100644 --- a/src/coremods/core_oper/cmd_kill.cpp +++ b/src/coremods/core_oper/cmd_kill.cpp @@ -57,7 +57,7 @@ class KillMessage : public ClientProtocol::Message */ CmdResult CommandKill::Handle(User* user, const Params& parameters) { - /* Allow comma seperated lists of users for /KILL (thanks w00t) */ + /* Allow comma separated lists of users for /KILL (thanks w00t) */ if (CommandParser::LoopCall(user, this, parameters, 0)) { // If we got a colon delimited list of nicks then the handler ran for each nick, diff --git a/src/coremods/core_serialize_rfc.cpp b/src/coremods/core_serialize_rfc.cpp index 8604eaf9f..dcd67d49e 100644 --- a/src/coremods/core_serialize_rfc.cpp +++ b/src/coremods/core_serialize_rfc.cpp @@ -89,7 +89,7 @@ bool RFCSerializer::Parse(LocalUser* user, const std::string& line, ClientProtoc while (ss.GetToken(token)) { // Two or more tags with the same key must not be sent, but if a client violates that we accept - // the first occurence of duplicate tags and ignore all later occurences. + // the first occurrence of duplicate tags and ignore all later occurrences. // // Another option is to reject the message entirely but there is no standard way of doing that. const std::string::size_type p = token.find('='); diff --git a/src/coremods/core_whois.cpp b/src/coremods/core_whois.cpp index 8ac86337e..541fb0bd6 100644 --- a/src/coremods/core_whois.cpp +++ b/src/coremods/core_whois.cpp @@ -312,8 +312,8 @@ CmdResult CommandWhois::HandleLocal(LocalUser* user, const Params& parameters) return CMD_SUCCESS; /* - * If 2 paramters are specified (/whois nick nick), ignore the first one like spanningtree - * does, and use the second one, otherwise, use the only paramter. -- djGrrr + * If 2 parameters are specified (/whois nick nick), ignore the first one like spanningtree + * does, and use the second one, otherwise, use the only parameter. -- djGrrr */ if (parameters.size() > 1) userindex = 1; diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index e019a660b..b1692e6d1 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -383,7 +383,7 @@ bool InspIRCd::Duration(const std::string& str, unsigned long& duration) } else { - /* Found something thats not a number, find out how much + /* Found something that's not a number, find out how much * it multiplies the built up number by, multiply the total * and reset the built up number. */ diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 956fb1155..a32c07931 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -52,7 +52,7 @@ InspIRCd* ServerInstance = NULL; -/** Seperate from the other casemap tables so that code *can* still exclusively rely on RFC casemapping +/** Separate from the other casemap tables so that code *can* still exclusively rely on RFC casemapping * if it must. * * This is provided as a pointer so that modules can change it to their custom mapping tables, @@ -544,7 +544,7 @@ InspIRCd::InspIRCd(int argc, char** argv) std::cout << "InspIRCd Process ID: " << con_green << getpid() << con_reset << std::endl; /* During startup we read the configuration now, not in - * a seperate thread + * a separate thread */ this->Config->Read(); this->Config->Apply(NULL, ""); @@ -675,7 +675,7 @@ void InspIRCd::Run() UpdateTime(); /* Run background module timers every few seconds - * (the docs say modules shouldnt rely on accurate + * (the docs say modules should not rely on accurate * timing using this event, so we dont have to * time this exactly). */ diff --git a/src/modules.cpp b/src/modules.cpp index 36f5409c4..1668f0215 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -234,7 +234,7 @@ bool ModuleManager::SetPriority(Module* mod, Implementation i, Priority s, Modul } /* Eh? this module doesnt exist, probably trying to set priority on an event - * theyre not attached to. + * they're not attached to. */ return false; @@ -315,7 +315,7 @@ swap_now: bool ModuleManager::PrioritizeHooks() { /* We give every module a chance to re-prioritize when we introduce a new one, - * not just the one thats loading, as the new module could affect the preference + * not just the one that's loading, as the new module could affect the preference * of others */ for (int tries = 0; tries < 20; tries++) diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index ff2a7a032..1db938b44 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -73,7 +73,7 @@ * worker thread wakes up, and checks if there is a request at the head of its queue. * If there is, it processes this request, blocking the worker thread but leaving the ircd * thread to go about its business as usual. During this period, the ircd thread is able - * to insert futher pending requests into the queue. + * to insert further pending requests into the queue. * * Once the processing of a request is complete, it is removed from the incoming queue to * an outgoing queue, and initialized as a 'response'. The worker thread then signals the @@ -90,7 +90,7 @@ * one the module was originally instantiated upon, there is a chance of all hell breaking loose * if a module is ever put in a re-enterant state (stack corruption could occur, crashes, data * corruption, and worse, so DONT think about it until the day comes when InspIRCd is 100% - * gauranteed threadsafe!) + * guaranteed threadsafe!) */ class SQLConnection; @@ -379,7 +379,7 @@ class SQLConnection : public SQL::Provider /* Parse the command string and dispatch it to mysql */ if (CheckConnection() && !mysql_real_query(connection, query.data(), query.length())) { - /* Successfull query */ + /* Successful query */ MYSQL_RES* res = mysql_use_result(connection); unsigned long rows = mysql_affected_rows(connection); return new MySQLresult(res, rows); diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 20c17783a..109725a43 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -273,7 +273,7 @@ class SQLConn : public SQL::Provider, public EventHandler if(PQsetnonblocking(sql, 1) == -1) return false; - /* OK, we've initalised the connection, now to get it hooked into the socket engine + /* OK, we've initialised the connection, now to get it hooked into the socket engine * and then start polling it. */ this->fd = PQsocket(sql); diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index d3857a82e..df7add05c 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -166,7 +166,7 @@ class ModuleAlias : public Module ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated) CXX11_OVERRIDE { - /* If theyre not registered yet, we dont want + /* If they're not registered yet, we dont want * to know. */ if (user->registered != REG_ALL) diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp index a8728ef72..b575491d6 100644 --- a/src/modules/m_callerid.cpp +++ b/src/modules/m_callerid.cpp @@ -202,7 +202,7 @@ public: parameter = (action.second ? "" : "-") + action.first->uuid; } - /** Will take any number of nicks (up to MaxTargets), which can be seperated by commas. + /** Will take any number of nicks (up to MaxTargets), which can be separated by commas. * - in front of any nick removes, and an * lists. This effectively means you can do: * /accept nick1,nick2,nick3,* * to add 3 nicks and then show your list @@ -243,12 +243,12 @@ public: RouteDescriptor GetRouting(User* user, const Params& parameters) CXX11_OVERRIDE { // There is a list in parameters[0] in two cases: - // Either when the source is remote, this happens because 2.0 servers send comma seperated uuid lists, + // Either when the source is remote, this happens because 2.0 servers send comma separated uuid lists, // we don't split those but broadcast them, as before. // // Or if the source is local then LoopCall() runs OnPostCommand() after each entry in the list, // meaning the linking module has sent an ACCEPT already for each entry in the list to the - // appropiate server and the ACCEPT with the list of nicks (this) doesn't need to be sent anywhere. + // appropriate server and the ACCEPT with the list of nicks (this) doesn't need to be sent anywhere. if ((!IS_LOCAL(user)) && (parameters[0].find(',') != std::string::npos)) return ROUTE_BROADCAST; diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index e506efb97..98bcbf4cd 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -189,7 +189,7 @@ class CommandDccallow : public Command , ext(Ext) { syntax = "[(+|-) [