MUC: Fix check for history length update.
--- a/plugins/muc/muc.lib.lua Sun May 13 21:07:00 2012 +0100
+++ b/plugins/muc/muc.lib.lua Mon May 14 02:42:42 2012 +0500
@@ -676,8 +676,8 @@
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)