plugins/muc/muc.lib.lua
changeset 6106 4b15cfae2d11
parent 6105 68f53b9a186e
child 6107 5491be05b84c
--- a/plugins/muc/muc.lib.lua	Tue Mar 18 15:15:28 2014 -0400
+++ b/plugins/muc/muc.lib.lua	Tue Mar 18 15:42:48 2014 -0400
@@ -181,7 +181,7 @@
 -- 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