From: Badlop Date: Wed, 12 Nov 2008 00:21:47 +0000 (+0000) Subject: * doc/guide.tex: Improve legibility of mod_irc example config X-Git-Tag: v2.0.3~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba258b0a3e487f60737cf14053f8595d326fb810;p=ejabberd * doc/guide.tex: Improve legibility of mod_irc example config SVN Revision: 1677 --- diff --git a/ChangeLog b/ChangeLog index c8bd06513..34ac597e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-11-12 Badlop + + * doc/guide.tex: Improve legibility of mod_irc example config + 2008-11-08 Mickael Remond * src/ejabberd_s2s_out.erl: exports the DNS resolution diff --git a/doc/guide.html b/doc/guide.html index 3c0345357..fe99068c9 100644 --- a/doc/guide.html +++ b/doc/guide.html @@ -1822,19 +1822,18 @@ able to use the transport. The default encoding is set to "iso8859-15". ... ]}.
  • In next example the IRC transport is available with JIDs with prefix irc-t.net. -Moreover, the transport is only accessible by paying customers registered on -our domains and on other servers. -
    {acl, paying_customers, {user, "customer1", "example.net"}}.
    -{acl, paying_customers, {user, "customer2", "example.com"}}.
    -{acl, paying_customers, {user, "customer3", "example.org"}}.
    +Moreover, the transport is only accessible to two users 
    +of example.org, and any user of example.com:
    +
    {acl, paying_customers, {user, "customer1", "example.org"}}.
    +{acl, paying_customers, {user, "customer2", "example.org"}}.
    +{acl, paying_customers, {server, "example.com"}}.
     
    -{access, paying_customers, [{allow, paying_customers},
    -                              {deny, all}]}.
    +{access, irc_users, [{allow, paying_customers}, {deny, all}]}.
     
     {modules,
      [
       ...
    -  {mod_irc, [{access, paying_customers},
    +  {mod_irc, [{access, irc_users},
                  {host, "irc.example.net"}]},
       ...
      ]}.
    diff --git a/doc/guide.tex b/doc/guide.tex
    index 86f136700..a23900026 100644
    --- a/doc/guide.tex
    +++ b/doc/guide.tex
    @@ -2370,20 +2370,19 @@ Examples:
      ]}.
     \end{verbatim}
     \item In next example the IRC transport is available with JIDs with prefix \jid{irc-t.net}.
    -  Moreover, the transport is only accessible by paying customers registered on
    -  our domains and on other servers.
    +  Moreover, the transport is only accessible to two users 
    +  of \term{example.org}, and any user of \term{example.com}:
     \begin{verbatim}
    -{acl, paying_customers, {user, "customer1", "example.net"}}.
    -{acl, paying_customers, {user, "customer2", "example.com"}}.
    -{acl, paying_customers, {user, "customer3", "example.org"}}.
    +{acl, paying_customers, {user, "customer1", "example.org"}}.
    +{acl, paying_customers, {user, "customer2", "example.org"}}.
    +{acl, paying_customers, {server, "example.com"}}.
     
    -{access, paying_customers, [{allow, paying_customers},
    -                              {deny, all}]}.
    +{access, irc_users, [{allow, paying_customers}, {deny, all}]}.
     
     {modules,
      [
       ...
    -  {mod_irc, [{access, paying_customers},
    +  {mod_irc, [{access, irc_users},
                  {host, "irc.example.net"}]},
       ...
      ]}.