From de6d4dbd1e8845e08c2d87cd89a919e5b21ba619 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 21 Jun 2021 16:47:06 -0400 Subject: Fix various spelling issues (#1883). Signed-off-by: Josh Soref --- include/command_parse.h | 2 +- include/extensible.h | 2 +- include/mode.h | 2 +- include/modules.h | 18 +++++++++--------- include/modules/httpd.h | 2 +- include/modules/ssl.h | 2 +- include/serialize.h | 4 ++-- include/socketengine.h | 2 +- include/users.h | 10 +++++----- 9 files changed, 22 insertions(+), 22 deletions(-) (limited to 'include') diff --git a/include/command_parse.h b/include/command_parse.h index 64981c634..8a373fded 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -68,7 +68,7 @@ class CoreExport CommandParser * and the command completeld successfully. It will return CMD_FAILURE if the command handler was found * and called, but the command did not complete successfully, and it will return CMD_INVALID if the * command simply did not exist at all or the wrong number of parameters were given, or the user - * was not privilaged enough to execute the command. + * was not privileged enough to execute the command. */ CmdResult CallHandler(const std::string& commandname, const CommandBase::Params& parameters, User* user, Command** cmd = NULL); diff --git a/include/extensible.h b/include/extensible.h index 2e7b83a28..f311bc959 100644 --- a/include/extensible.h +++ b/include/extensible.h @@ -157,7 +157,7 @@ class CoreExport Extensible unsigned int culled:1; public: /** - * Get the extension items for iteraton (i.e. for metadata sync during netburst) + * Get the extension items for iteration (i.e. for metadata sync during netburst) */ inline const ExtensibleStore& GetExtList() const { return extensions; } diff --git a/include/mode.h b/include/mode.h index 940ed2144..40760bf03 100644 --- a/include/mode.h +++ b/include/mode.h @@ -539,7 +539,7 @@ class CoreExport ModeWatcher : public classbase * @param dest The target user for the mode, if you are watching a user mode * @param channel The target channel for the mode, if you are watching a channel mode * @param parameter The parameter of the mode, if the mode is supposed to have a parameter. - * If you alter the parameter you are given, the mode handler will see your atered version + * If you alter the parameter you are given, the mode handler will see your altered version * when it handles the mode. * @param adding True if the mode is being added and false if it is being removed * @return True to allow the mode change to go ahead, false to abort it. If you abort the diff --git a/include/modules.h b/include/modules.h index 6e3122389..df8052089 100644 --- a/include/modules.h +++ b/include/modules.h @@ -493,7 +493,7 @@ class CoreExport Module : public classbase, public usecountbase * @param user The user joining the channel * @param chan If the channel is a new channel, this will be NULL, otherwise it will be a pointer to the channel being joined * @param cname The channel name being joined. For new channels this is valid where chan is not. - * @param privs A string containing the users privilages when joining the channel. For new channels this will contain "o". + * @param privs A string containing the users privileges when joining the channel. For new channels this will contain "o". * You may alter this string to alter the user's modes on the channel. * @param keygiven The key given to join the channel, or an empty string if none was provided * @return 1 To prevent the join, 0 to allow it. @@ -592,7 +592,7 @@ class CoreExport Module : public classbase, public usecountbase /** Called before local nickname changes. This can be used to implement Q-lines etc. * If your method returns nonzero, the nickchange is silently forbidden, and it is down to your - * module to generate some meaninful output. + * module to generate some meaningful output. * @param user The username changing their nick * @param newnick Their new nickname * @return 1 to deny the change, 0 to allow @@ -649,14 +649,14 @@ class CoreExport Module : public classbase, public usecountbase /** Called whenever a user's hostname is changed. * This event triggers after the host has been set. - * @param user The user whos host is being changed + * @param user The user whose host is being changed * @param newhost The new hostname being set */ virtual void OnChangeHost(User* user, const std::string &newhost); /** Called whenever a user's real hostname is changed. * This event triggers before the host has been set. - * @param user The user whos host is being changed + * @param user The user whose host is being changed * @param newhost The new hostname being set */ virtual void OnChangeRealHost(User* user, const std::string& newhost); @@ -713,7 +713,7 @@ class CoreExport Module : public classbase, public usecountbase /** Called after any nickchange, local or remote. This can be used to track users after nickchanges * have been applied. Please note that although you can see remote nickchanges through this function, you should - * NOT make any changes to the User if the user is a remote user as this may cause a desnyc. + * NOT make any changes to the User if the user is a remote user as this may cause a desync. * check user->server before taking any action (including returning nonzero from the method). * Because this method is called after the nickchange is taken place, no return values are possible * to indicate forbidding of the nick change. Use OnUserPreNick for this. @@ -830,14 +830,14 @@ class CoreExport Module : public classbase, public usecountbase /** Called after a user object is initialised and added to the user list. * When this is called the user has not had their I/O hooks checked or had their initial - * connect class assigned and may not yet have a serialiser. You probably want to use + * connect class assigned and may not yet have a serializer. You probably want to use * the OnUserPostInit or OnUserSetIP hooks instead of this one. * @param user The connecting user. */ virtual void OnUserInit(LocalUser* user); /** Called after a user object has had their I/O hooks checked, their initial connection - * class assigned, and had a serialiser set. + * class assigned, and had a serializer set. * @param user The connecting user. */ virtual void OnUserPostInit(LocalUser* user); @@ -937,7 +937,7 @@ class CoreExport Module : public classbase, public usecountbase /** Called whenever a change of a local users displayed host is attempted. * Return 1 to deny the host change, or 0 to allow it. - * @param user The user whos host will be changed + * @param user The user whose host will be changed * @param newhost The new hostname * @return 1 to deny the host change, 0 to allow */ @@ -945,7 +945,7 @@ class CoreExport Module : public classbase, public usecountbase /** Called whenever a change of a local users real name is attempted. * return MOD_RES_DENY to deny the name change, or MOD_RES_ALLOW to allow it. - * @param user The user whos real name will be changed + * @param user The user whose real name will be changed * @param newhost The new real name. * @return MOD_RES_DENY to deny the real name change, MOD_RES_ALLOW to allow */ diff --git a/include/modules/httpd.h b/include/modules/httpd.h index f3402c8d8..681f62230 100644 --- a/include/modules/httpd.h +++ b/include/modules/httpd.h @@ -87,7 +87,7 @@ struct HTTPRequestURI std::string fragment; }; -/** A modifyable list of HTTP header fields +/** A modifiable list of HTTP header fields */ class HTTPHeaders { diff --git a/include/modules/ssl.h b/include/modules/ssl.h index 7af2ce3ee..8081adb36 100644 --- a/include/modules/ssl.h +++ b/include/modules/ssl.h @@ -110,7 +110,7 @@ class ssl_cert : public refcountbase return unknownsigner; } - /** Get revokation status. + /** Get revocation status. * @return True if the certificate is revoked. * Note that this only works properly for GnuTLS * right now. diff --git a/include/serialize.h b/include/serialize.h index df0cbd5d5..aa26da19b 100644 --- a/include/serialize.h +++ b/include/serialize.h @@ -60,7 +60,7 @@ class CoreExport Serializable /** Loads the value with the specified key. * @param key The key by which this data is identified. - * @param out The location to store the value for this keu + * @param out The location to store the value for this key. */ Data& Load(const std::string& key, std::string& out); @@ -109,7 +109,7 @@ class CoreExport Serializable */ virtual bool Deserialize(Data& data) = 0; - /** Serializes the this object into the specified Data obect. + /** Serializes the this object into the specified Data object. * @param data The Data object to serialize to. * @return True if the serialisation succeeded; otherwise, false. */ diff --git a/include/socketengine.h b/include/socketengine.h index d8d5e406d..8dc548a68 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -68,7 +68,7 @@ enum EventMask /** Mask for all read events */ FD_WANT_READ_MASK = 0x0F, - /** Do not test this socket for writeability + /** Do not test this socket for writability */ FD_WANT_NO_WRITE = 0x10, /** Give a write event at all times when writes will not block. diff --git a/include/users.h b/include/users.h index 28f94a215..d85224452 100644 --- a/include/users.h +++ b/include/users.h @@ -469,7 +469,7 @@ class CoreExport User : public Extensible void SetMode(ModeHandler* mh, bool value); void SetMode(ModeHandler& mh, bool value) { SetMode(&mh, value); } - /** Returns true or false for if a user can execute a privilaged oper command. + /** Returns true or false for if a user can execute a privileged oper command. * This is done by looking up their oper type from User::oper, then referencing * this to their oper classes and checking the commands they can execute. * @param command A command (should be all CAPS) @@ -481,7 +481,7 @@ class CoreExport User : public Extensible * This is used to check whether or not users may perform certain actions which admins may not wish to give to * all operators, yet are not commands. An example might be oper override, mass messaging (/notice $*), etc. * - * @param privstr The priv to chec, e.g. "users/override/topic". These are loaded free-form from the config file. + * @param privstr The priv to check, e.g. "users/override/topic". These are loaded free-form from the config file. * @return True if this user has the permission in question. */ virtual bool HasPrivPermission(const std::string& privstr); @@ -672,7 +672,7 @@ class CoreExport User : public Extensible /** Change the ident (username) of a user. * ALWAYS use this function, rather than writing User::ident directly, - * as this triggers module events allowing the change to be syncronized to + * as this triggers module events allowing the change to be synchronized to * remote servers. * @param newident The new ident to set * @return True if the change succeeded, false if it didn't @@ -863,7 +863,7 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node