aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2010-11-17 15:58:32 +0100
committerKim Alvefur <zash@zash.se>2010-11-17 15:58:32 +0100
commitc6eb530c0b5046c4c8bd4ca01f47b6fcd3a3bc72 (patch)
tree5355bc33a31f8569081e8fb0206414c71421705c /plugins/muc
parentaa9369309a6fc4f00251f65aca8624a18713d7f3 (diff)
downloadprosody-c6eb530c0b5046c4c8bd4ca01f47b6fcd3a3bc72.tar.gz
prosody-c6eb530c0b5046c4c8bd4ca01f47b6fcd3a3bc72.zip
MUC: Change room name and description properly
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files 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