* src/mod_pubsub/nodetree_virtual.erl: Fixed error report at startup.
SVN Revision: 1170
This commit is contained in:
parent
5e88123ec9
commit
7ca44abb22
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue