Diff

plugins/muc/muc.lib.lua @ 3629:856e42b38bb0

MUC: Change room name and description properly
author Kim Alvefur <zash@zash.se>
date Wed, 17 Nov 2010 15:58:32 +0100
parent 3611:d58da6bb8a77
child 3631:138f385e8246
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Wed Nov 17 00:18:31 2010 +0500
+++ b/plugins/muc/muc.lib.lua	Wed Nov 17 15:58:32 2010 +0100
@@ -613,12 +613,12 @@
 	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