25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-21 15:41:51 +02:00

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

SVN Revision: 1169
This commit is contained in:
Mickaël Rémond 2008-02-02 14:24:01 +00:00
parent fff45aca21
commit 65981598ed
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,6 @@
2008-02-02 Mickael Remond <mremond@process-one.net> 2008-02-02 Mickael Remond <mremond@process-one.net
* src/mod_pubsub/nodetree_virtual.erl: Fixed error report at startup.
* src/mod_pubsub/mod_pubsub.erl: Added the from field in the * src/mod_pubsub/mod_pubsub.erl: Added the from field in the
get_subnodes pubsub plugin API function. This is usefull to write get_subnodes pubsub plugin API function. This is usefull to write

View File

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