Diff

plugins/mod_offline.lua @ 3971:faace741d0f9

mod_offline: Make sure mod_offline's store handler reports success vs failure.
author Robert Hoelz <rob@hoelz.ro>
date Thu, 09 Dec 2010 12:38:33 -0600
parent 3969:32d4a73901e2
child 3972:a05cf5d9c7ab
line wrap: on
line diff
--- a/plugins/mod_offline.lua	Thu Dec 09 12:36:29 2010 -0600
+++ b/plugins/mod_offline.lua	Thu Dec 09 12:38:33 2010 -0600
@@ -29,7 +29,7 @@
 	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)