25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

* src/mod_pubsub/mod_pubsub.erl (create_new_node): Bugfix

SVN Revision: 127
This commit is contained in:
Alexey Shchepin 2003-07-27 19:56:16 +00:00
parent 28c0fee27b
commit f91e46ad8d
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2003-07-27 Alexey Shchepin <alexey@sevcom.net>
* src/mod_pubsub/mod_pubsub.erl (create_new_node): Bugfix
2003-07-21 Alexey Shchepin <alexey@sevcom.net>
* src/mod_vcard.erl: Bugfix

View File

@ -455,13 +455,9 @@ create_new_node(Host, Node, Owner) ->
[] ->
{LOU, LOS, _} = jlib:jid_tolower(Owner),
HomeNode = ["home", LOS, LOU],
case create_new_node(Host, HomeNode, Owner) of
{error, _} = Error ->
Error;
_ ->
NewNode = ["home", LOS, LOU, randoms:get_string()],
create_new_node(Host, NewNode, Owner)
end;
create_new_node(Host, HomeNode, Owner),
NewNode = ["home", LOS, LOU, randoms:get_string()],
create_new_node(Host, NewNode, Owner);
_ ->
LOwner = jlib:jid_tolower(jlib:jid_remove_resource(Owner)),
Parent = lists:sublist(Node, length(Node) - 1),