# HG changeset patch # User Waqas Hussain # Date 1287197370 -18000 # Node ID 41f1cac405602b8aed9363bd7d3292722c329ccf # Parent 4986ffe35704a3d52357e33aaf5d1f99cf161369 mod_smacks: Fixed to use the correct events API. diff -r 4986ffe35704 -r 41f1cac40560 mod_smacks/mod_smacks.lua --- a/mod_smacks/mod_smacks.lua Sat Oct 16 06:23:16 2010 +0500 +++ b/mod_smacks/mod_smacks.lua Sat Oct 16 07:49:30 2010 +0500 @@ -13,14 +13,14 @@ local resume_timeout = 300; local max_unacked_stanzas = 0; -module:add_event_hook("stream-features", - function (session, features) - features:tag("sm", sm_attr):tag("optional"):up():up(); +module:hook("stream-features", + function (event) + event.features:tag("sm", sm_attr):tag("optional"):up():up(); end); module:hook("s2s-stream-features", - function (data) - data.features:tag("sm", sm_attr):tag("optional"):up():up(); + function (event) + event.features:tag("sm", sm_attr):tag("optional"):up():up(); end); module:hook_stanza(xmlns_sm, "enable",