From 15b4b3fa1bf97af74c9a2019afc14af2965c66db Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Tue, 16 Jul 2019 22:07:39 +0300 Subject: [PATCH] Fix typos using codespell --- include/pubsub.hrl | 2 +- src/ejabberd_auth.erl | 2 +- src/ejabberd_auth_external.erl | 2 +- src/ejabberd_auth_jwt.erl | 2 +- src/ejabberd_auth_ldap.erl | 2 +- src/ejabberd_auth_mnesia.erl | 2 +- src/ejabberd_auth_riak.erl | 2 +- src/ejabberd_auth_sql.erl | 2 +- src/ejabberd_commands.erl | 4 ++-- src/ejabberd_config.erl | 2 +- src/ejabberd_redis.erl | 2 +- src/ejabberd_s2s.erl | 2 +- src/ejabberd_tmp_sup.erl | 2 +- src/ejabberd_web_admin.erl | 2 +- src/gen_mod.erl | 2 +- src/mod_http_fileserver.erl | 2 +- src/mod_mqtt_session.erl | 2 +- src/mod_muc.erl | 2 +- src/mod_muc_admin.erl | 2 +- src/mod_muc_room.erl | 2 +- src/mod_privacy.erl | 2 +- src/mod_pubsub.erl | 6 +++--- src/node_flat.erl | 4 ++-- src/nodetree_tree.erl | 2 +- src/nodetree_tree_sql.erl | 2 +- 25 files changed, 29 insertions(+), 29 deletions(-) diff --git a/include/pubsub.hrl b/include/pubsub.hrl index 735cfc737..77a9458a6 100644 --- a/include/pubsub.hrl +++ b/include/pubsub.hrl @@ -58,7 +58,7 @@ %% note: pos_integer() should always be used, but we allow anything else coded %% as binary, so one can have a custom implementation of nodetree with custom %% indexing (see nodetree_virtual). this also allows to use any kind of key for -%% indexing nodes, as this can be usefull with external backends such as sql. +%% indexing nodes, as this can be useful with external backends such as sql. -type(itemId() :: binary()). %% @type itemId() = string(). diff --git a/src/ejabberd_auth.erl b/src/ejabberd_auth.erl index f97a40264..357b0d7ae 100644 --- a/src/ejabberd_auth.erl +++ b/src/ejabberd_auth.erl @@ -1,7 +1,7 @@ %%%---------------------------------------------------------------------- %%% File : ejabberd_auth.erl %%% Author : Alexey Shchepin -%%% Purpose : Authentification +%%% Purpose : Authentication %%% Created : 23 Nov 2002 by Alexey Shchepin %%% %%% diff --git a/src/ejabberd_auth_external.erl b/src/ejabberd_auth_external.erl index c5aac836a..c57a6a297 100644 --- a/src/ejabberd_auth_external.erl +++ b/src/ejabberd_auth_external.erl @@ -1,7 +1,7 @@ %%%---------------------------------------------------------------------- %%% File : ejabberd_auth_external.erl %%% Author : Alexey Shchepin -%%% Purpose : Authentification via LDAP external script +%%% Purpose : Authentication via LDAP external script %%% Created : 12 Dec 2004 by Alexey Shchepin %%% %%% diff --git a/src/ejabberd_auth_jwt.erl b/src/ejabberd_auth_jwt.erl index 696190e5c..7b14835d2 100644 --- a/src/ejabberd_auth_jwt.erl +++ b/src/ejabberd_auth_jwt.erl @@ -1,7 +1,7 @@ %%%---------------------------------------------------------------------- %%% File : ejabberd_auth_jwt.erl %%% Author : Mickael Remond -%%% Purpose : Authentification using JWT tokens +%%% Purpose : Authentication using JWT tokens %%% Created : 16 Mar 2019 by Mickael Remond %%% %%% diff --git a/src/ejabberd_auth_ldap.erl b/src/ejabberd_auth_ldap.erl index 4dfebddcd..6966e3289 100644 --- a/src/ejabberd_auth_ldap.erl +++ b/src/ejabberd_auth_ldap.erl @@ -1,7 +1,7 @@ %%%---------------------------------------------------------------------- %%% File : ejabberd_auth_ldap.erl %%% Author : Alexey Shchepin -%%% Purpose : Authentification via LDAP +%%% Purpose : Authentication via LDAP %%% Created : 12 Dec 2004 by Alexey Shchepin %%% %%% diff --git a/src/ejabberd_auth_mnesia.erl b/src/ejabberd_auth_mnesia.erl index efd6be19f..8d4062346 100644 --- a/src/ejabberd_auth_mnesia.erl +++ b/src/ejabberd_auth_mnesia.erl @@ -1,7 +1,7 @@ %%%---------------------------------------------------------------------- %%% File : ejabberd_auth_mnesia.erl %%% Author : Alexey Shchepin -%%% Purpose : Authentification via mnesia +%%% Purpose : Authentication via mnesia %%% Created : 12 Dec 2004 by Alexey Shchepin %%% %%% diff --git a/src/ejabberd_auth_riak.erl b/src/ejabberd_auth_riak.erl index 839bbc720..6ae713da6 100644 --- a/src/ejabberd_auth_riak.erl +++ b/src/ejabberd_auth_riak.erl @@ -1,7 +1,7 @@ %%%---------------------------------------------------------------------- %%% File : ejabberd_auth_riak.erl %%% Author : Evgeniy Khramtsov -%%% Purpose : Authentification via Riak +%%% Purpose : Authentication via Riak %%% Created : 12 Nov 2012 by Evgeniy Khramtsov %%% %%% diff --git a/src/ejabberd_auth_sql.erl b/src/ejabberd_auth_sql.erl index 413c6a02f..ee1ccd75b 100644 --- a/src/ejabberd_auth_sql.erl +++ b/src/ejabberd_auth_sql.erl @@ -1,7 +1,7 @@ %%%---------------------------------------------------------------------- %%% File : ejabberd_auth_sql.erl %%% Author : Alexey Shchepin -%%% Purpose : Authentification via ODBC +%%% Purpose : Authentication via ODBC %%% Created : 12 Dec 2004 by Alexey Shchepin %%% %%% diff --git a/src/ejabberd_commands.erl b/src/ejabberd_commands.erl index b3c3ef4d5..08faff22e 100644 --- a/src/ejabberd_commands.erl +++ b/src/ejabberd_commands.erl @@ -200,7 +200,7 @@ %%% command. %%% TODO: consider this feature: -%%% All commands are catched. If an error happens, return the restuple: +%%% All commands are caught. If an error happens, return the restuple: %%% {error, flattened error string} %%% This means that ecomm call APIs (ejabberd_ctl, ejabberd_xmlrpc) %%% need to allows this. And ejabberd_xmlrpc must be prepared to @@ -348,7 +348,7 @@ list_commands() -> -spec list_commands(integer()) -> [{atom(), [aterm()], string()}]. %% @doc Get a list of all the available commands, arguments and -%% description in a given API verion. +%% description in a given API version. list_commands(Version) -> Commands = get_commands_definition(Version), [{Name, Args, Desc} || #ejabberd_commands{name = Name, diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl index f6f1a192b..2afc4823b 100644 --- a/src/ejabberd_config.erl +++ b/src/ejabberd_config.erl @@ -377,7 +377,7 @@ format_error({error, {write_file, Path, Reason}}) -> format_error({error, {exception, Class, Reason, St}}) -> lists:flatten( io_lib:format( - "Exception occured during configuration processing. " + "Exception occurred during configuration processing. " "This is most likely due to faulty/incompatible validator in " "third-party code. If you are not running any third-party " "code, please report the bug with ejabberd configuration " diff --git a/src/ejabberd_redis.erl b/src/ejabberd_redis.erl index a9ceb1833..5f256b4d3 100644 --- a/src/ejabberd_redis.erl +++ b/src/ejabberd_redis.erl @@ -392,7 +392,7 @@ handle_call({subscribe, Caller, Channels}, _From, eredis_subscribe(Pid, Channels), {reply, ok, State#state{subscriptions = Subs1}}; handle_call(Request, _From, State) -> - ?WARNING_MSG("Unexepected call: ~p", [Request]), + ?WARNING_MSG("Unexpected call: ~p", [Request]), {noreply, State}. handle_cast(_Msg, State) -> diff --git a/src/ejabberd_s2s.erl b/src/ejabberd_s2s.erl index 7163e5d27..e7ce67466 100644 --- a/src/ejabberd_s2s.erl +++ b/src/ejabberd_s2s.erl @@ -62,7 +62,7 @@ -define(DEFAULT_MAX_S2S_CONNECTIONS_NUMBER_PER_NODE, 1). -define(S2S_OVERLOAD_BLOCK_PERIOD, 60). -%% once a server is temporarly blocked, it stay blocked for 60 seconds +%% once a server is temporary blocked, it stay blocked for 60 seconds -record(s2s, {fromto :: {binary(), binary()}, pid :: pid()}). diff --git a/src/ejabberd_tmp_sup.erl b/src/ejabberd_tmp_sup.erl index 6bcd4d810..be03a9b6d 100644 --- a/src/ejabberd_tmp_sup.erl +++ b/src/ejabberd_tmp_sup.erl @@ -1,7 +1,7 @@ %%%---------------------------------------------------------------------- %%% File : ejabberd_tmp_sup.erl %%% Author : Alexey Shchepin -%%% Purpose : Supervisor for temporary processess +%%% Purpose : Supervisor for temporary processes %%% Created : 18 Jul 2003 by Alexey Shchepin %%% %%% diff --git a/src/ejabberd_web_admin.erl b/src/ejabberd_web_admin.erl index 89a900a2f..ac4ffd396 100644 --- a/src/ejabberd_web_admin.erl +++ b/src/ejabberd_web_admin.erl @@ -70,7 +70,7 @@ get_acl_rule([<<"additions.js">>], _) -> %% This page only displays vhosts that the user is admin: get_acl_rule([<<"vhosts">>], _) -> {<<"localhost">>, [all]}; -%% The pages of a vhost are only accesible if the user is admin of that vhost: +%% The pages of a vhost are only accessible if the user is admin of that vhost: get_acl_rule([<<"server">>, VHost | _RPath], Method) when Method =:= 'GET' orelse Method =:= 'HEAD' -> {VHost, [configure, webadmin_view]}; diff --git a/src/gen_mod.erl b/src/gen_mod.erl index 202598af3..2401a512a 100644 --- a/src/gen_mod.erl +++ b/src/gen_mod.erl @@ -431,7 +431,7 @@ format_module_error(Module, Fun, Arity, Opts, Class, Reason, St) -> [Module, Fun, Arity, Ret]); _ -> io_lib:format("Internal error of module ~s has " - "occured during ~s:~n" + "occurred during ~s:~n" "** Options: ~p~n" "** ~s", [Module, Fun, Opts, diff --git a/src/mod_http_fileserver.erl b/src/mod_http_fileserver.erl index ac94b58d6..556651ef8 100644 --- a/src/mod_http_fileserver.erl +++ b/src/mod_http_fileserver.erl @@ -407,7 +407,7 @@ add_to_log(File, FileSize, Code, Request) -> Referer = find_header('Referer', Request#request.headers, "-"), %% Pseudo Combined Apache log format: %% 127.0.0.1 - - [28/Mar/2007:18:41:55 +0200] "GET / HTTP/1.1" 302 303 "-" "tsung" - %% TODO some fields are harcoded/missing: + %% TODO some fields are hardcoded/missing: %% The date/time integers should have always 2 digits. For example day "7" should be "07" %% Month should be 3*letter, not integer 1..12 %% Missing time zone = (`+' | `-') 4*digit diff --git a/src/mod_mqtt_session.erl b/src/mod_mqtt_session.erl index dd7a7c47f..0ac5be895 100644 --- a/src/mod_mqtt_session.erl +++ b/src/mod_mqtt_session.erl @@ -175,7 +175,7 @@ handle_call({get_state, Pid}, From, State) -> {stop, Status, State1} -> {stop, Status, State1#state{stop_reason = {replaced, Pid}}}; {noreply, State1, _} -> - ?DEBUG("Transfering MQTT session state to ~p at ~s", [Pid, node(Pid)]), + ?DEBUG("Transferring MQTT session state to ~p at ~s", [Pid, node(Pid)]), Q1 = p1_queue:file_to_ram(State1#state.queue), p1_server:reply(From, {ok, State1#state{queue = Q1}}), SessionExpiry = timer:seconds(State1#state.session_expiry), diff --git a/src/mod_muc.erl b/src/mod_muc.erl index 7e400030e..a553618f3 100644 --- a/src/mod_muc.erl +++ b/src/mod_muc.erl @@ -280,7 +280,7 @@ shutdown_rooms(ServerHost, Hosts, RMod) -> %% B) The only participant of a temporary room leaves it %% C) mod_muc:stop was called, and each room is being terminated %% In this case, the mod_muc process died before the room processes -%% So the message sending must be catched +%% So the message sending must be caught -spec room_destroyed(binary(), binary(), pid(), binary()) -> ok. room_destroyed(Host, Room, Pid, ServerHost) -> Proc = procname(ServerHost, {Room, Host}), diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index beef3bc04..9b95a352e 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -1023,7 +1023,7 @@ get_room_pid(Name, Service) -> Pid end. -%% It is required to put explicitely all the options because +%% It is required to put explicitly all the options because %% the record elements are replaced at compile time. %% So, this can't be parametrized. change_option(Option, Value, Config) -> diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index a8b831283..ea1d3ee8d 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -4690,7 +4690,7 @@ send_wrapped_multiple(From, Users, Packet, Node, State) -> end, ok, Users). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% Detect messange stanzas that don't have meaninful content +%% Detect messange stanzas that don't have meaningful content -spec has_body_or_subject(message()) -> boolean(). has_body_or_subject(#message{body = Body, subject = Subj}) -> Body /= [] orelse Subj /= []. diff --git a/src/mod_privacy.erl b/src/mod_privacy.erl index 3c394dc53..f928c8291 100644 --- a/src/mod_privacy.erl +++ b/src/mod_privacy.erl @@ -618,7 +618,7 @@ do_check_packet(#jid{luser = LUser, lserver = LServer}, List, Packet, Dir) -> message | iq | presence_in | presence_out | other, ljid(), none | both | from | to, [binary()]) -> allow | deny. -%% Ptype = mesage | iq | presence_in | presence_out | other +%% Ptype = message | iq | presence_in | presence_out | other check_packet_aux([], _PType, _JID, _Subscription, _Groups) -> allow; diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 137df086a..ff169ce73 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -572,7 +572,7 @@ caps_update(From, To, _Features) -> -spec presence_probe(jid(), jid(), pid()) -> ok. presence_probe(#jid{luser = U, lserver = S}, #jid{luser = U, lserver = S}, _Pid) -> - %% ignore presence_probe from my other ressources + %% ignore presence_probe from my other resources ok; presence_probe(#jid{lserver = S} = From, #jid{lserver = S} = To, _Pid) -> send_last_pep(To, From); @@ -1556,7 +1556,7 @@ create_node(Host, ServerHost, Node, Owner, GivenType, Access, Configuration) -> Error end. -%% @doc

Delete specified node and all childs.

+%% @doc

Delete specified node and all children.

%%

There are several reasons why the node deletion request might fail:

%%
    %%
  • The requesting entity does not have sufficient privileges to delete the node.
  • @@ -1899,7 +1899,7 @@ delete_item(Host, Node, Publisher, ItemId, ForceNotify) -> PersistentFeature = lists:member(<<"persistent-items">>, Features), DeleteFeature = lists:member(<<"delete-items">>, Features), PublishModel = get_option(Options, publish_model), - if %%-> iq_pubsub just does that matchs + if %%-> iq_pubsub just does that matches %% %% Request does not specify an item %% {error, extended_error(?ERR_BAD_REQUEST, "item-required")}; not PersistentFeature -> diff --git a/src/node_flat.erl b/src/node_flat.erl index e7c61aac1..8317a955d 100644 --- a/src/node_flat.erl +++ b/src/node_flat.erl @@ -179,7 +179,7 @@ delete_node(Nodes) -> %% {@link mod_pubsub:pubsubState()} will be considered as already stored and %% no further persistence operation will be performed. This case is used, %% when the plugin module is doing the persistence by itself or when it want -%% to completly disable persistence.
+%% to completely disable persistence. %%

%%

In the default plugin module, the record is unchanged.

subscribe_node(Nidx, Sender, Subscriber, AccessModel, @@ -349,7 +349,7 @@ delete_subscriptions(SubState, Subscriptions) -> %% {@link mod_pubsub:pubsubItem()} will be considered as already stored and %% no further persistence operation will be performed. This case is used, %% when the plugin module is doing the persistence by itself or when it want -%% to completly disable persistence. +%% to completely disable persistence. %%

%%

In the default plugin module, the record is unchanged.

publish_item(Nidx, Publisher, PublishModel, MaxItems, ItemId, Payload, diff --git a/src/nodetree_tree.erl b/src/nodetree_tree.erl index 2be16fd7e..dfe8cd398 100644 --- a/src/nodetree_tree.erl +++ b/src/nodetree_tree.erl @@ -30,7 +30,7 @@ %%%

PubSub node tree plugins are using the {@link gen_nodetree} behaviour.

%%%

The API isn't stabilized yet. The pubsub plugin %%% development is still a work in progress. However, the system is already -%%% useable and useful as is. Please, send us comments, feedback and +%%% usable and useful as is. Please, send us comments, feedback and %%% improvements.

-module(nodetree_tree). diff --git a/src/nodetree_tree_sql.erl b/src/nodetree_tree_sql.erl index 786f8b262..efef656c5 100644 --- a/src/nodetree_tree_sql.erl +++ b/src/nodetree_tree_sql.erl @@ -30,7 +30,7 @@ %%%

PubSub node tree plugins are using the {@link gen_nodetree} behaviour.

%%%

The API isn't stabilized yet. The pubsub plugin %%% development is still a work in progress. However, the system is already -%%% useable and useful as is. Please, send us comments, feedback and +%%% usable and useful as is. Please, send us comments, feedback and %%% improvements.

-module(nodetree_tree_sql).