summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ircd/index.js5
-rw-r--r--lib/panda.js10
-rw-r--r--package.json1
3 files changed, 11 insertions, 5 deletions
diff --git a/ircd/index.js b/ircd/index.js
new file mode 100644
index 0000000..2060844
--- /dev/null
+++ b/ircd/index.js
@@ -0,0 +1,5 @@
+var ircd = require('ircdjs')
+process.argv.push('-f')
+process.argv.push('ircd/config.json')
+ircd.Server.boot()
+
diff --git a/lib/panda.js b/lib/panda.js
index 906aeb5..0a6b520 100644
--- a/lib/panda.js
+++ b/lib/panda.js
@@ -6,18 +6,18 @@ var TASK_DELAY = 800
var panda = {}
-var client = panda.client = new irc.Client( 'irc.jollo.org', process.env.IRC_NICK, {
+var client = panda.client = new irc.Client( process.env.IRC_SERVER, process.env.IRC_NICK, {
userName: process.env.IRC_NAME,
realName: process.env.IRC_REALNAME,
- port: 9999,
+ port: process.env.IRC_PORT,
localAddress: null,
debug: false,
showErrors: false,
autoRejoin: false,
autoConnect: true,
- channels: ["#sally"],
- secure: true,
- selfSigned: true,
+ channels: process.env.IRC_CHANNELS.split(","),
+ secure: process.env.IRC_SSL == "true",
+ selfSigned: process.env.IRC_SSL == "true",
certExpired: false,
floodProtection: false,
floodProtectionDelay: 1000,
diff --git a/package.json b/package.json
index 53d268c..ff629cb 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,7 @@
"express-liquid": "^0.2.6",
"express-session": "^1.14.2",
"irc": "^0.5.0",
+ "ircdjs": "0.0.17",
"knox": "^0.9.2",
"multer": "^1.2.0",
"socket.io": "^1.5.1"