]> granicus.if.org Git - ejabberd/commitdiff
Find and fix typos using 'codespell'
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 27 Jan 2018 16:35:38 +0000 (19:35 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 27 Jan 2018 16:35:38 +0000 (19:35 +0300)
12 files changed:
src/acme_challenge.erl
src/ejabberd_access_permissions.erl
src/ejabberd_commands.erl
src/ejabberd_ctl.erl
src/ejabberd_http.erl
src/ejabberd_listener.erl
src/eldap_filter.erl
src/mod_admin_extra.erl
src/mod_http_api.erl
src/mod_pubsub.erl
src/mod_roster.erl
src/node_flat.erl

index f4fde4e734e922bd9d286ca19d271abd6ec6a74f..5e8c099441a84deef203a9e3ad277384bd0bd53b 100644 (file)
@@ -100,7 +100,7 @@ solve_challenge1(Chal = #challenge{type = <<"http-01">>, token=Tkn}, Key) ->
     ets_put_key_authorization(Tkn, KeyAuthz),
     {ok, Chal#challenge.uri, KeyAuthz};
 solve_challenge1(Challenge, _Key) ->
-    ?ERROR_MSG("Unkown Challenge Type: ~p", [Challenge]),
+    ?ERROR_MSG("Unknown Challenge Type: ~p", [Challenge]),
     {error, unknown_challenge}.
 
 
index 8151e955358e2be4619864686343edcfc2f72e84..ca38ad0dc8878c6feaa579d47cba590f67789b09 100644 (file)
@@ -393,7 +393,7 @@ parse_who(Name, Defs, ParseOauth) when is_list(Defs) ->
                               {oauth, lists:foldl(fun({scope, S}, A) -> S ++ A end, [], Scopes), Rest}
                       end;
                   scope ->
-                      report_error(<<"Oauth rule can't be embeded inside other oauth rule in 'who' section for api_permission '~s'">>,
+                      report_error(<<"Oauth rule can't be embedded inside other oauth rule in 'who' section for api_permission '~s'">>,
                                    [Name])
               end;
           ({scope, ScopeList}) ->
index 0ace10e5281c65b95f0e6b2123fe145be1bad574..d9523ace56278c90c1161ccfe725a84e659fb774 100644 (file)
@@ -259,9 +259,9 @@ get_commands_spec() ->
                                         "documentation should be stored",
                                         "Regexp matching names of commands or modules "
                                         "that will be included inside generated document",
-                                        "Comma separated list of languages (choosen from java, perl, xmlrpc, json)"
+                                        "Comma separated list of languages (chosen from java, perl, xmlrpc, json)"
                                         "that will have example invocation include in markdown document"],
-                           result_desc = "0 if command failed, 1 when succedded",
+                           result_desc = "0 if command failed, 1 when succeeded",
                            args_example = ["/home/me/docs/api.html", "mod_admin", "java,json"],
                            result_example = ok},
         #ejabberd_commands{name = gen_markdown_doc_for_commands, tags = [documentation],
@@ -273,9 +273,9 @@ get_commands_spec() ->
                                         "documentation should be stored",
                                         "Regexp matching names of commands or modules "
                                         "that will be included inside generated document",
-                                        "Comma separated list of languages (choosen from java, perl, xmlrpc, json)"
+                                        "Comma separated list of languages (chosen from java, perl, xmlrpc, json)"
                                         "that will have example invocation include in markdown document"],
-                           result_desc = "0 if command failed, 1 when succedded",
+                           result_desc = "0 if command failed, 1 when succeeded",
                            args_example = ["/home/me/docs/api.html", "mod_admin", "java,json"],
                            result_example = ok}].
 
index 804f3e8fae7fdbdc759c1c2e04dfe7dca751718b..408e489e6ca75ce8e9d6126ab035989b1b866c64 100644 (file)
@@ -133,7 +133,7 @@ code_change(_OldVsn, State, _Extra) ->
     {ok, State}.
 
 %%-----------------------------
-%% ejabberdctl Command managment
+%% ejabberdctl Command management
 %%-----------------------------
 
 register_commands(CmdDescs, Module, Function) ->
@@ -866,7 +866,7 @@ print(Format, Args) ->
     io:format(lists:flatten(Format), Args).
 
 %%-----------------------------
-%% Command managment
+%% Command management
 %%-----------------------------
 
 %%+++
index 0152672be9cc57db1bd0568c1038a65e550157e4..05bdc4495d7308f949b5d4a9f10114c978740b4f 100644 (file)
@@ -651,7 +651,7 @@ parse_lang(Langs) ->
     end.
 
 % Code below is taken (with some modifications) from the yaws webserver, which
-% is distributed under the folowing license:
+% is distributed under the following license:
 %
 % This software (the yaws webserver) is free software.
 % Parts of this software is Copyright (c) Claes Wikstrom <klacke@hyber.org>
index 297a9c4865d3ab3f340422391476d3f67f7a5b98..63842b62602c14c666d529c924fecac71df80465 100644 (file)
@@ -107,7 +107,7 @@ init_udp(PortIP, Module, Opts, SockOpts, Port, IPS) ->
                             {reuseaddr, true} |
                             SockOpts]) of
        {ok, Socket} ->
-           %% Inform my parent that this port was opened succesfully
+           %% Inform my parent that this port was opened successfully
            proc_lib:init_ack({ok, self()}),
            application:ensure_started(ejabberd),
            start_module_sup(Port, Module),
@@ -133,7 +133,7 @@ init_udp(PortIP, Module, Opts, SockOpts, Port, IPS) ->
 
 init_tcp(PortIP, Module, Opts, SockOpts, Port, IPS) ->
     ListenSocket = listen_tcp(PortIP, Module, SockOpts, Port, IPS),
-    %% Inform my parent that this port was opened succesfully
+    %% Inform my parent that this port was opened successfully
     proc_lib:init_ack({ok, self()}),
     application:ensure_started(ejabberd),
     start_module_sup(Port, Module),
index 723b1059d617a4b6e370a94000e096fb5f09e7c9..32cb85fd902d543919d6d9cb869e7d72a6ee7395 100644 (file)
@@ -64,7 +64,7 @@ parse(L) ->
 %%%           RFC2254_Filter = RegExp = Value = string(),
 %%%           N = integer().
 %%%
-%%% Description: The same as parse/1, but substitutes N or all occurences
+%%% Description: The same as parse/1, but substitutes N or all occurrences
 %%%              of RegExp with Value *after* parsing.
 %%%
 %%% Example:
index a0679aefee0e99edac388b8e75c7b0b5b5054b48..ec7376e1dacc3a80fc822281f47a91f1a6b52838 100644 (file)
@@ -1025,7 +1025,7 @@ get_status_list(Host, Status_required) ->
     Sessions2 = [ {Session#session.usr, Session#session.sid, Session#session.priority} || Session <- Sessions],
     Fhost = case Host of
                <<"all">> ->
-                   %% All hosts are requested, so dont filter at all
+                   %% All hosts are requested, so don't filter at all
                    fun(_, _) -> true end;
                _ ->
                    %% Filter the list, only Host is interesting
index d403e3aa982aa6e3656d66797e3047872a38e579..e8ca866a18ebebf9a97949e4adafe3d11bf6a336 100644 (file)
@@ -43,7 +43,7 @@
 %% add_commands allow exporting a class of commands, from
 %%   open: methods is not risky and can be called by without any access check
 %%   restricted (default): the same, but will appear only in ejabberdctl list.
-%%   admin – auth is required with XMLRPC and HTTP API and checked for admin priviledges, works as usual in ejabberdctl.
+%%   admin – auth is required with XMLRPC and HTTP API and checked for admin privileges, works as usual in ejabberdctl.
 %%   user - can be used through XMLRPC and HTTP API, even by user. Only admin can use the commands for other users.
 %%
 %% Then to perform an action, send a POST request to the following URL:
@@ -301,7 +301,7 @@ handle(Call, Auth, Args, Version) when is_atom(Call), is_list(Args) ->
                  throw:{not_allowed, Msg} ->
                    {401, iolist_to_binary(Msg)};
                   throw:{error, account_unprivileged} ->
-        {403, 31, <<"Command need to be run with admin priviledge.">>};
+        {403, 31, <<"Command need to be run with admin privilege.">>};
       throw:{error, access_rules_unauthorized} ->
         {403, 32, <<"AccessRules: Account does not have the right to perform the operation.">>};
                  throw:{invalid_parameter, Msg} ->
index 436ed1f3e1ba607630c1e4f50a24eb415aa060a1..80c93b4a7e482e3bda51ffb3d93f4bdef3e64a86 100644 (file)
@@ -2826,7 +2826,7 @@ get_options_for_subs(Host, Nidx, Subs, true) ->
 
 broadcast_stanza(Host, _Node, _Nidx, _Type, NodeOptions, SubsByDepth, NotifyType, BaseStanza, SHIM) ->
     NotificationType = get_option(NodeOptions, notification_type, headline),
-    BroadcastAll = get_option(NodeOptions, broadcast_all_resources), %% XXX this is not standard, but usefull
+    BroadcastAll = get_option(NodeOptions, broadcast_all_resources), %% XXX this is not standard, but useful
     Stanza = add_message_type(
               xmpp:set_from(BaseStanza, service_jid(Host)),
               NotificationType),
index 68d987e0e06df279888f0b823e035163c5b970df..ed2a58887c1c87a3233c3d5953727cd2270ad72a 100644 (file)
@@ -273,8 +273,8 @@ write_roster_version(LUser, LServer, InTransaction) ->
     end,
     Ver.
 
-%% Load roster from DB only if neccesary.
-%% It is neccesary if
+%% Load roster from DB only if necessary.
+%% It is necessary if
 %%     - roster versioning is disabled in server OR
 %%     - roster versioning is not used by the client OR
 %%     - roster versioning is used by server and client, BUT the server isn't storing versions on db OR
index 639b24a93ade8aaf09482eb8f58d9171d6bcd80d..2538a09a598e4935834376fa722af5ec99037832 100644 (file)
@@ -160,10 +160,10 @@ delete_node(Nodes) ->
 %% can decide to:<ul>
 %%  <li>reject the subscription;</li>
 %%  <li>allow it as is, letting the main module perform the database
-%%  persistance;</li>
+%%  persistence;</li>
 %%  <li>allow it, modifying the record. The main module will store the
 %%  modified record;</li>
-%%  <li>allow it, but perform the needed persistance operations.</li></ul>
+%%  <li>allow it, but perform the needed persistence operations.</li></ul>
 %% </li></ul></p>
 %% <p>The selected behaviour depends on the return parameter:
 %%  <ul>
@@ -177,9 +177,9 @@ delete_node(Nodes) ->
 %%   passed in parameter <tt>SubscribeResult</tt>.</li>
 %%   <li><tt>{true, done}</tt>: Subscribe operation is allowed, but the
 %%   {@link mod_pubsub:pubsubState()} will be considered as already stored and
-%%   no further persistance operation will be performed. This case is used,
-%%   when the plugin module is doing the persistance by itself or when it want
-%%   to completly disable persistance.</li></ul>
+%%   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.</li></ul>
 %% </p>
 %% <p>In the default plugin module, the record is unchanged.</p>
 subscribe_node(Nidx, Sender, Subscriber, AccessModel,
@@ -329,9 +329,9 @@ delete_subscriptions(SubState, Subscriptions) ->
 %% result of the preparation as a {@link mod_pubsub:pubsubItem()} record.</li>
 %% <li>This function gets the prepared record and several other parameters and can decide to:<ul>
 %%  <li>reject the publication;</li>
-%%  <li>allow the publication as is, letting the main module perform the database persistance;</li>
+%%  <li>allow the publication as is, letting the main module perform the database persistence;</li>
 %%  <li>allow the publication, modifying the record. The main module will store the modified record;</li>
-%%  <li>allow it, but perform the needed persistance operations.</li></ul>
+%%  <li>allow it, but perform the needed persistence operations.</li></ul>
 %% </li></ul></p>
 %% <p>The selected behaviour depends on the return parameter:
 %%  <ul>
@@ -343,13 +343,13 @@ delete_subscriptions(SubState, Subscriptions) ->
 %%   performed.</li>
 %%   <li><tt>{true, Item}</tt>: Publication operation is allowed, but the
 %%   {@link mod_pubsub:pubsubItem()} record returned replaces the value passed
-%%   in parameter <tt>Item</tt>. The persistance will be performed by the main
+%%   in parameter <tt>Item</tt>. The persistence will be performed by the main
 %%   module.</li>
 %%   <li><tt>{true, done}</tt>: Publication operation is allowed, but the
 %%   {@link mod_pubsub:pubsubItem()} will be considered as already stored and
-%%   no further persistance operation will be performed. This case is used,
-%%   when the plugin module is doing the persistance by itself or when it want
-%%   to completly disable persistance.</li></ul>
+%%   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.</li></ul>
 %% </p>
 %% <p>In the default plugin module, the record is unchanged.</p>
 publish_item(Nidx, Publisher, PublishModel, MaxItems, ItemId, Payload,