25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +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> 2003-07-21 Alexey Shchepin <alexey@sevcom.net>
* src/mod_vcard.erl: Bugfix * src/mod_vcard.erl: Bugfix

View File

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