Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 4875:f9fe28461101
MUC: Fix check for history length update.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Mon, 14 May 2012 02:42:42 +0500 |
| parents | 4e9781a61242 |
| children | fa41d05ee7ef |
comparison
equal
deleted
inserted
replaced
| 4874:4e9781a61242 | 4875:f9fe28461101 |
|---|---|
| 674 | 674 |
| 675 local changesubject = fields['muc#roomconfig_changesubject']; | 675 local changesubject = fields['muc#roomconfig_changesubject']; |
| 676 dirty = dirty or (self:get_changesubject() ~= (not changesubject and true or nil)) | 676 dirty = dirty or (self:get_changesubject() ~= (not changesubject and true or nil)) |
| 677 module:log('debug', 'changesubject=%s', changesubject and "true" or "false") | 677 module:log('debug', 'changesubject=%s', changesubject and "true" or "false") |
| 678 | 678 |
| 679 local historylength = fields['muc#roomconfig_historylength']; | 679 local historylength = tonumber(fields['muc#roomconfig_historylength']); |
| 680 dirty = dirty or (self:get_historylength() ~= (historylength and true or nil)) | 680 dirty = dirty or (historylength and (self:get_historylength() ~= historylength)); |
| 681 module:log('debug', 'historylength=%s', historylength) | 681 module:log('debug', 'historylength=%s', historylength) |
| 682 | 682 |
| 683 | 683 |
| 684 local whois = fields['muc#roomconfig_whois']; | 684 local whois = fields['muc#roomconfig_whois']; |
| 685 if not valid_whois[whois] then | 685 if not valid_whois[whois] then |
