# HG changeset patch # User Kim Alvefur # Date 1343593451 -7200 # Node ID 92c6f84ec446c31765f4345294bc694f479718a4 # Parent ceea444983c0b6b4686c86b71d222535d574aa20 mod_smacks: Use require to import (thanks a lot, autocomplete) diff -r ceea444983c0 -r 92c6f84ec446 mod_smacks/mod_smacks.lua --- a/mod_smacks/mod_smacks.lua Sun Jul 29 22:21:32 2012 +0200 +++ b/mod_smacks/mod_smacks.lua Sun Jul 29 22:24:11 2012 +0200 @@ -19,7 +19,7 @@ local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false); local max_unacked_stanzas = module:get_option_number("smacks_max_unacked_stanzas", 0); local core_process_stanza = prosody.core_process_stanza; -local sessionmanager = request"core.sessionmanager"; +local sessionmanager = require"core.sessionmanager"; local c2s_sessions = module:shared("/*/c2s/sessions"); local session_registry = {};