comparison mod_ircd/squishy @ 481:355b4ecbe2dd

mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
author Matthew Wild <mwild1@gmail.com>
date Mon, 28 Nov 2011 14:00:37 +0000
parents 030404dd7609
children
comparison
equal deleted inserted replaced
480:0cef5be669de 481:355b4ecbe2dd
1 Output "mod_ircd.lua" 1 Output "mod_ircd.lua"
2 2
3 -- In theory, you should be able to leave all but verses groupchat and presence plugins 3 -- In theory, you should be able to leave all but verses groupchat and presence plugins
4 Module "verse" "verse.lua" 4 local verse_path = GetOption("verse");
5 if not verse_path then
6 if GetOption("use-http") then
7 AutoFetchURL "http://code.matthewwild.co.uk/verse/raw-file/tip?"
8 verse_path = "";
9 else
10 Module "verse"
11 end
12 end
13
14 if verse_path then
15 if verse_path:match("verse%.lua$") then
16 Module "verse" (verse_path)
17 else
18 Module "verse" (verse_path.."/init.lua")
19 Module "verse.component" (verse_path.."/component.lua")
20 Module "verse.plugins.groupchat" (verse_path.."/plugins/groupchat.lua")
21 Module "verse.plugins.presence" (verse_path.."/plugins/presence.lua")
22 end
23 end
5 24
6 Main "mod_ircd.in.lua" 25 Main "mod_ircd.in.lua"