mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
firstchild becomes iqchild
This commit is contained in:
parent
1541bb7ca3
commit
504050b041
3 changed files with 20 additions and 19 deletions
|
@ -448,10 +448,11 @@ certificate_check_jabbername(name, cert) {
|
|||
}
|
||||
#endif
|
||||
|
||||
/* get first child of a node
|
||||
* used for <iq/>
|
||||
/* get first child of a node used for <iq/>
|
||||
* "first" is actually inaccurate, since there is no defined order in mappings,
|
||||
* so we select the child, that is not an error
|
||||
*/
|
||||
getfirstchild(node) {
|
||||
getiqchild(node) {
|
||||
mixed res;
|
||||
foreach(mixed key, mixed val : node) {
|
||||
unless(stringp(key) && key[0] == '/') continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue