aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua2
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