* src/mod_pubsub/nodetree_virtual.erl: Fixed error report at startup.

SVN Revision: 1170
This commit is contained in:
Mickaël Rémond 2008-02-02 14:27:09 +00:00
parent 5e88123ec9
commit 7ca44abb22
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-02-02 Mickael Remond <mremond@process-one.net>
* src/mod_pubsub/nodetree_virtual.erl: Fixed error report at startup.
2008-01-30 Badlop <badlop@process-one.net>
* doc/guide.tex: Removed the option served_hosts in mod_pubsub

View File

@ -119,7 +119,9 @@ get_subnodes_tree(_Host, _Node) ->
%% @doc <p>No node record is stored on database. Any valid node
%% is considered as already created.</p>
%% <p>default allowed nodes: /home/host/user/any/node/name</p>
create_node(_Host, Node, _Type, {UserName, UserHost, _}, _Options) ->
create_node(_Host, Node, _Type, Owner, _Options) ->
UserName = Owner#jid.luser,
UserHost = Owner#jid.lserver,
case Node of
["home", UserHost, UserName | _] -> {error, ?ERR_CONFLICT};
_ -> {error, ?ERR_NOT_ALLOWED}