# HG changeset patch # User Kim Alvefur # Date 1314725213 -7200 # Node ID 78ae20c875cd48acbac464cc60dd4073f042bb13 # Parent aa3088108021eeeb45be2504cb09d1fd7f728d64 squishy: Add a convenience function for plugins diff -r aa3088108021 -r 78ae20c875cd squishy --- a/squishy Sun Aug 28 23:34:59 2011 +0200 +++ b/squishy Tue Aug 30 19:26:53 2011 +0200 @@ -25,32 +25,36 @@ Module "util.jid" "util/jid.lua" Module "util.events" "util/events.lua" Module "util.dataforms" "util/dataforms.lua" +Module "util.caps" "util/caps.lua" -- Verse plugins -Module "verse.plugins.tls" "plugins/tls.lua" -Module "verse.plugins.sasl" "plugins/sasl.lua" -Module "verse.plugins.bind" "plugins/bind.lua" -Module "verse.plugins.legacy" "plugins/legacy.lua" -Module "verse.plugins.pubsub" "plugins/pubsub.lua" -Module "verse.plugins.version" "plugins/version.lua" -Module "verse.plugins.ping" "plugins/ping.lua" -Module "verse.plugins.session" "plugins/session.lua" -Module "verse.plugins.compression" "plugins/compression.lua" -Module "verse.plugins.blocking" "plugins/blocking.lua" -Module "verse.plugins.proxy65" "plugins/proxy65.lua" -Module "verse.plugins.jingle" "plugins/jingle.lua" -Module "verse.plugins.jingle_ft" "plugins/jingle_ft.lua" -Module "verse.plugins.jingle_s5b" "plugins/jingle_s5b.lua" -Module "verse.plugins.presence" "plugins/presence.lua" -Module "verse.plugins.disco" "plugins/disco.lua" -Module "verse.plugins.pep" "plugins/pep.lua" -Module "verse.plugins.adhoc" "plugins/adhoc.lua" -Module "verse.plugins.private" "plugins/private.lua" -Module "verse.plugins.groupchat" "plugins/groupchat.lua" -Module "verse.plugins.uptime" "plugins/uptime.lua" -Module "verse.plugins.smacks" "plugins/smacks.lua" -Module "verse.plugins.keepalive" "plugins/keepalive.lua" -Module "verse.plugins.roster" "plugins/roster.lua" +local function Plugin(name) + Module("verse.plugins."..name)("plugins/"..name..".lua") +end +Plugin "tls" +Plugin "sasl" +Plugin "bind" +Plugin "legacy" +Plugin "pubsub" +Plugin "version" +Plugin "ping" +Plugin "session" +Plugin "compression" +Plugin "blocking" +Plugin "proxy65" +Plugin "jingle" +Plugin "jingle_ft" +Plugin "jingle_s5b" +Plugin "presence" +Plugin "disco" +Plugin "pep" +Plugin "adhoc" +Plugin "private" +Plugin "groupchat" +Plugin "uptime" +Plugin "smacks" +Plugin "keepalive" +Plugin "roster" Module "net.httpclient_listener" "net/httpclient_listener.lua" Module "net.connlisteners" "net/connlisteners.lua"