Mercurial > prosody-modules
annotate mod_ircd/squishy @ 490:00b77a9f2d5f
mod_ircd: "yatc" (yet another typo correction)
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Fri, 02 Dec 2011 04:41:31 +0000 |
parents | 355b4ecbe2dd |
children |
rev | line source |
---|---|
465
030404dd7609
mod_ircd: Better nameing, squishy.
Kim Alvefur <zash@zash.se>
parents:
461
diff
changeset
|
1 Output "mod_ircd.lua" |
326
282abba844e8
mod_ircd: Partial rewrite, use verse for MUC
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 |
447
21cb01de89a8
mod_ircd: few patches from both Zash and myself to make it work again.
Marco Cirillo <maranda@lightwitch.org>
parents:
327
diff
changeset
|
3 -- In theory, you should be able to leave all but verses groupchat and presence plugins |
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.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
4 local verse_path = GetOption("verse"); |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
5 if not verse_path then |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
6 if GetOption("use-http") then |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
7 AutoFetchURL "http://code.matthewwild.co.uk/verse/raw-file/tip?" |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
8 verse_path = ""; |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
9 else |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
10 Module "verse" |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
11 end |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
12 end |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
13 |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
14 if verse_path then |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
15 if verse_path:match("verse%.lua$") then |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
16 Module "verse" (verse_path) |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
17 else |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
18 Module "verse" (verse_path.."/init.lua") |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
19 Module "verse.component" (verse_path.."/component.lua") |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
20 Module "verse.plugins.groupchat" (verse_path.."/plugins/groupchat.lua") |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
21 Module "verse.plugins.presence" (verse_path.."/plugins/presence.lua") |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
22 end |
355b4ecbe2dd
mod_ircd: squishy: Search for installed verse by default, but support --use-http or --verse=path to fetch Verse from HTTP or filesystem.
Matthew Wild <mwild1@gmail.com>
parents:
465
diff
changeset
|
23 end |
326
282abba844e8
mod_ircd: Partial rewrite, use verse for MUC
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
24 |
465
030404dd7609
mod_ircd: Better nameing, squishy.
Kim Alvefur <zash@zash.se>
parents:
461
diff
changeset
|
25 Main "mod_ircd.in.lua" |