# HG changeset patch # User Waqas Hussain # Date 1336945362 -18000 # Node ID f9fe284611016b57f6ad2ac3ab8a6296a4db0061 # Parent 4e9781a612423abae286a0e7b5c97d9d292c0b42 MUC: Fix check for history length update. diff -r 4e9781a61242 -r f9fe28461101 plugins/muc/muc.lib.lua --- 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)