~ubuntu-branches/ubuntu/trusty/ejabberd/trusty-proposed

« back to all changes in this revision

Viewing changes to src/ejabberd_router.erl

  • Committer: Bazaar Package Importer
  • Author(s): Konstantin Khomoutov, Konstantin Khomoutov
  • Date: 2010-07-26 20:36:14 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20100726203614-s3asj0k5ym3bxhdw
Tags: 2.1.4-1
[ Konstantin Khomoutov ]
* Do not prevent ejabberd_debug from being installed and used
  as this was implemented upstream as the default behavior.
* Add build dependency on erlang-parsetools.
* Add 'sharedscripts' option to logrotate config.
* Update VCS references in control file to point to git.deb.at.
* Add group sticky bit to permissions on the log directory --
  this should make log files owned by the group "adm".
* Explicitly set umask to 027 before starting erl.
* Add patch with fix for EJAB-953 (closes: #590389).
* Fix call to setup_ejabberd in postinst.
* Fix owner/permissions for log files when upgrading.
* Minor fixes and clarifications in ejabberdctl.8 manual page.
* Refresh reopen-log.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
%% API
33
33
-export([route/3,
 
34
         route_error/4,
34
35
         register_route/1,
35
36
         register_route/2,
36
37
         register_routes/1,
72
73
            ok
73
74
    end.
74
75
 
 
76
%% Route the error packet only if the originating packet is not an error itself.
 
77
%% RFC3920 9.3.1
 
78
route_error(From, To, ErrPacket, OrigPacket) ->
 
79
    {xmlelement, _Name, Attrs, _Els} = OrigPacket,
 
80
    case "error" == xml:get_attr_s("type", Attrs) of
 
81
        false ->
 
82
            route(From, To, ErrPacket);
 
83
        true ->
 
84
            ok
 
85
    end.
 
86
 
75
87
register_route(Domain) ->
76
88
    register_route(Domain, undefined).
77
89