# HG changeset patch # User Matthew Wild # Date 1322488837 0 # Node ID 355b4ecbe2ddc43e2dc42a2577292c73ee2995e1 # Parent 0cef5be669defab6dbf55b26680b60c5739af342 mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem. diff -r 0cef5be669de -r 355b4ecbe2dd mod_ircd/squishy --- a/mod_ircd/squishy Sat Nov 26 09:06:04 2011 +0100 +++ b/mod_ircd/squishy Mon Nov 28 14:00:37 2011 +0000 @@ -1,6 +1,25 @@ Output "mod_ircd.lua" -- In theory, you should be able to leave all but verses groupchat and presence plugins -Module "verse" "verse.lua" +local verse_path = GetOption("verse"); +if not verse_path then + if GetOption("use-http") then + AutoFetchURL "http://code.matthewwild.co.uk/verse/raw-file/tip?" + verse_path = ""; + else + Module "verse" + end +end + +if verse_path then + if verse_path:match("verse%.lua$") then + Module "verse" (verse_path) + else + Module "verse" (verse_path.."/init.lua") + Module "verse.component" (verse_path.."/component.lua") + Module "verse.plugins.groupchat" (verse_path.."/plugins/groupchat.lua") + Module "verse.plugins.presence" (verse_path.."/plugins/presence.lua") + end +end Main "mod_ircd.in.lua"