From c6eb530c0b5046c4c8bd4ca01f47b6fcd3a3bc72 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 17 Nov 2010 15:58:32 +0100 Subject: MUC: Change room name and description properly --- plugins/muc/muc.lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index d89f3efe..922b23d8 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -613,12 +613,12 @@ function room_mt:process_form(origin, stanza) local dirty = false local name = fields['muc#roomconfig_roomname']; - if name then + if name ~= self:get_name() then self:set_name(name); end local description = fields['muc#roomconfig_roomdesc']; - if description then + if description ~= self:get_description() then self:set_description(description); end -- cgit v1.2.3