From 3ac96f5c347b78d1e1ac8a21c8667a08860c668b Mon Sep 17 00:00:00 2001
From: Robert Hoelz <rob@hoelz.ro>
Date: Thu, 9 Dec 2010 12:38:33 -0600
Subject: mod_offline: Make sure mod_offline's store handler reports success vs
 failure.

---
 plugins/mod_offline.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'plugins')

diff --git a/plugins/mod_offline.lua b/plugins/mod_offline.lua
index f44d16af..d1370b41 100644
--- a/plugins/mod_offline.lua
+++ b/plugins/mod_offline.lua
@@ -29,7 +29,7 @@ module:hook("message/offline/store", function(event)
 	local result = datamanager.list_append(node, host, "offline", st.preserialize(stanza));
 	stanza.attr.stamp, stanza.attr.stamp_legacy = nil, nil;
 	
-	return true;
+	return result;
 end);
 
 module:hook("message/offline/broadcast", function(event)
-- 
cgit v1.2.3