Permalink
Browse files

[minor] Adjusted example config.json to match API changes.

  • Loading branch information...
1 parent bc2bdf0 commit 6ae42454e4d9c7cedaf1b1ab61faa7f49ae9a051 @AvianFlu AvianFlu committed Oct 25, 2011
Showing with 14 additions and 4 deletions.
  1. +12 −2 config.json
  2. +2 −2 lib/listeners.js
View
@@ -1,5 +1,10 @@
{
- "version": "v0.1.0",
+ "version": "v0.1.3",
+ "children": [
+ "irc",
+ "twitter",
+ "mailer"
+ ],
"access": {
"admin": [
"AvianFlu",
@@ -21,6 +26,11 @@
"TheJH"
]
},
+ "ranks": [
+ "admin",
+ "employee",
+ "friend"
+ ],
"insults": [
"%% is a wombat-loving heifer-puncher!",
"%% is an unsightly trouser stain!",
@@ -45,7 +55,7 @@
},
"irc-server": "irc.freenode.net",
"port": 6667,
- "nick": "kohai-default",
+ "nick": "kohai-unstable",
"channels": ["#nodebombrange", "#kohai"],
"showErrors": "true",
"userName": "kohai",
View
@@ -39,7 +39,7 @@ listeners.init = function () {
});
self.on('*::Iparted', function (data) {
- if (self.channels[data]) {
+ if (typeof self.channels[data] !== 'undefined') {
self.channels[data].part();
self.channels = self.channels.filter( function (item) {
return item !== data;
@@ -86,4 +86,4 @@ function _lazyLoad() {
}
}
});
-}
+}

0 comments on commit 6ae4245

Please sign in to comment.