Diff

plugins/mod_offline.lua @ 3969:32d4a73901e2

mod_presence, mod_offline: Merge message/offline/delete with message/offline/broadcast.
author Robert Hoelz <rob@hoelz.ro>
date Thu, 09 Dec 2010 12:28:05 -0600
parent 3540:bc139431830b
child 3971:faace741d0f9
line wrap: on
line diff
--- a/plugins/mod_offline.lua	Thu Dec 09 12:23:37 2010 -0600
+++ b/plugins/mod_offline.lua	Thu Dec 09 12:28:05 2010 -0600
@@ -47,13 +47,7 @@
 			stanza.attr.stamp, stanza.attr.stamp_legacy = nil, nil;
 			origin.send(stanza);
 		end
+		datamanager.list_store(node, host, "offline", nil);
 		return true;
 	end
 end);
-
-module:hook("message/offline/delete", function(event)
-	local origin = event.origin;
-	local node, host = origin.username, origin.host;
-
-	return datamanager.list_store(node, host, "offline", nil);
-end);