mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
* src/mod_offline.erl: Code clean-up.
SVN Revision: 832
This commit is contained in:
parent
8d9e093788
commit
59fa698967
@ -1,5 +1,7 @@
|
||||
2007-07-26 Mickael Remond <mickael.remond@process-one.net>
|
||||
|
||||
* src/mod_offline.erl: Code clean-up.
|
||||
|
||||
* src/gen_mod.erl: Throw error more cleanly.
|
||||
|
||||
* src/mod_configure.erl: One ACL call was not virtual host
|
||||
|
@ -171,8 +171,7 @@ find_x_expire(TimeStamp, [{xmlcdata, _} | Els]) ->
|
||||
find_x_expire(TimeStamp, [El | Els]) ->
|
||||
case xml:get_tag_attr_s("xmlns", El) of
|
||||
?NS_EXPIRE ->
|
||||
case xml:get_tag_attr_s("seconds", El) of
|
||||
Val ->
|
||||
Val = xml:get_tag_attr_s("seconds", El),
|
||||
case catch list_to_integer(Val) of
|
||||
{'EXIT', _} ->
|
||||
never;
|
||||
@ -185,9 +184,6 @@ find_x_expire(TimeStamp, [El | Els]) ->
|
||||
_ ->
|
||||
never
|
||||
end;
|
||||
_ ->
|
||||
never
|
||||
end;
|
||||
_ ->
|
||||
find_x_expire(TimeStamp, Els)
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user