mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
* src/mod_pubsub/nodetree_virtual.erl: Fixed error report at startup.
SVN Revision: 1169
This commit is contained in:
parent
fff45aca21
commit
65981598ed
@ -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
|
||||
get_subnodes pubsub plugin API function. This is usefull to write
|
||||
|
@ -120,7 +120,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
Block a user