aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2012-05-14 02:42:42 +0500
committerWaqas Hussain <waqas20@gmail.com>2012-05-14 02:42:42 +0500
commitd6b67f7c9e2ae14014d3b039f65a8636af2a9649 (patch)
treef6a4ee55c1a90d96276d59d576061e7505c7dd6c /plugins/muc/muc.lib.lua
parentea1662404fb68cd6e61eb835a84e3182e328b513 (diff)
downloadprosody-d6b67f7c9e2ae14014d3b039f65a8636af2a9649.tar.gz
prosody-d6b67f7c9e2ae14014d3b039f65a8636af2a9649.zip
MUC: Fix check for history length update.
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-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 556916f2..31e6809f 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -676,8 +676,8 @@ function room_mt:process_form(origin, stanza)
dirty = dirty or (self:get_changesubject() ~= (not changesubject and true or nil))
module:log('debug', 'changesubject=%s', changesubject and "true" or "false")
- local historylength = fields['muc#roomconfig_historylength'];
- dirty = dirty or (self:get_historylength() ~= (historylength and true or nil))
+ local historylength = tonumber(fields['muc#roomconfig_historylength']);
+ dirty = dirty or (historylength and (self:get_historylength() ~= historylength));
module:log('debug', 'historylength=%s', historylength)