mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Use string() version of UserName and UserHost.
PR: EJABP-1 SVN Revision: 1839
This commit is contained in:
parent
cdbb000638
commit
2f1397c50e
@ -6,6 +6,9 @@
|
||||
* src/cyrsasl.erl: Return invalid-mechanism when a mechanism isn't
|
||||
supported instead of no-mechanism, which wasn't standard-compliant.
|
||||
|
||||
* src/mod_pubsub/nodetree_virtual.erl (create_node/5): Use string()
|
||||
version of UserName and UserHost.
|
||||
|
||||
2009-01-19 Pablo Polvorin <pablo.polvorin@process-one.net>
|
||||
|
||||
* src/cyrsasl_digest.erl: Typo (prolists -> proplists).
|
||||
|
@ -130,8 +130,8 @@ get_subnodes_tree(_Host, _Node) ->
|
||||
%% is considered as already created.</p>
|
||||
%% <p>default allowed nodes: /home/host/user/any/node/name</p>
|
||||
create_node(_Host, Node, _Type, Owner, _Options) ->
|
||||
UserName = Owner#jid.lnode,
|
||||
UserHost = Owner#jid.ldomain,
|
||||
UserName = exmpp_jid:lnode_as_list(Owner),
|
||||
UserHost = exmpp_jid:ldomain_as_list(Owner),
|
||||
case Node of
|
||||
["home", UserHost, UserName | _] -> {error, 'conflict'};
|
||||
_ -> {error, 'not-allowed'}
|
||||
|
Loading…
Reference in New Issue
Block a user