diff options
author | daurnimator <quae@daurnimator.com> | 2014-03-18 15:42:48 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-03-18 15:42:48 -0400 |
commit | 176fc76253fd26bca5efc0249b3666feb40ddf99 (patch) | |
tree | 400d06532a2073c0be35331b27f871315515b454 /plugins | |
parent | 5a0baa1d2f9dc13a5fce3013b2c8a68d7e0d1b83 (diff) | |
download | prosody-176fc76253fd26bca5efc0249b3666feb40ddf99.tar.gz prosody-176fc76253fd26bca5efc0249b3666feb40ddf99.zip |
plugins/muc/muc: When there's no history; return an empty iterator
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 0c87574a..2afe6f58 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -181,7 +181,7 @@ end -- Get history for 'to' function room_mt:get_history(to, maxchars, maxstanzas, since) local history = self._data['history']; -- send discussion history - if not history then return end + if not history then return function() end end local history_len = #history maxstanzas = maxstanzas or history_len |