# HG changeset patch # User Kim Alvefur # Date 1635970571 -3600 # Node ID fdd9e5d89d733795dd23fabf62109b34bf4da566 # Parent 5aee8d86629ab62134517fe543747faae28bba1d mod_bookmarks2: Fix comparison The nick and password elements are children of the conference element, rather than the pubsub item element passed to the function. diff -r 5aee8d86629a -r fdd9e5d89d73 mod_bookmarks2/mod_bookmarks2.lua --- a/mod_bookmarks2/mod_bookmarks2.lua Wed Nov 03 21:11:55 2021 +0100 +++ b/mod_bookmarks2/mod_bookmarks2.lua Wed Nov 03 21:16:11 2021 +0100 @@ -89,10 +89,10 @@ end local a_conference = a:get_child("conference", namespace); local b_conference = b:get_child("conference", namespace); - local a_nick = a:get_child_text("nick", namespace); - local b_nick = b:get_child_text("nick", namespace); - local a_password = a:get_child_text("password", namespace); - local b_password = b:get_child_text("password", namespace); + local a_nick = a_conference:get_child_text("nick"); + local b_nick = b_conference:get_child_text("nick"); + local a_password = a_conference:get_child_text("password"); + local b_password = b_conference:get_child_text("password"); return (a.attr.id == b.attr.id and a_conference.attr.name == b_conference.attr.name and a_conference.attr.autojoin == b_conference.attr.autojoin and