Software /
code /
prosody
Changeset
3629:856e42b38bb0
MUC: Change room name and description properly
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 17 Nov 2010 15:58:32 +0100 |
parents | 3628:576103409c7a |
children | 3630:e0c67b14d25f |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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