diff --git a/jsbot b/jsbot index 606d0cd..139a3aa 160000 --- a/jsbot +++ b/jsbot @@ -1 +1 @@ -Subproject commit 606d0cdcddfda9d7328cfa0b65bb4a3079d77d9e +Subproject commit 139a3aad5a8b5c71dfe43fdc3f04d29d8b4104df diff --git a/modules/atheme/atheme.js b/modules/atheme/atheme.js index 93afbd7..6bbbc96 100644 --- a/modules/atheme/atheme.js +++ b/modules/atheme/atheme.js @@ -51,7 +51,7 @@ var atheme = function(dbot) { }); delete this.hostStack[server][mask]; } - }.bind(this), 2000); + }.bind(this), 5000); } }; @@ -95,8 +95,7 @@ var atheme = function(dbot) { delete allFlags[u]; } }); - - async.each(_.keys(hostMasks), function(hostMask, done) { + async.each(_.keys(hostMasks), function(hostMask, done) { this.api.getVHosts(event.server, hostMask.split('@')[1], function(err, users) { _.each(users, function(user) { allFlags[user] = hostMasks[hostMask]; @@ -109,7 +108,7 @@ var atheme = function(dbot) { callback(null, this.flagStack[event.server][end[1]].flags); }.bind(this)); delete this.flagStack[event.server][end[1]]; - }.bind(this)); + }.bind(this)); } } } else if(event.user === 'HostServ') { diff --git a/modules/radio/config.json b/modules/radio/config.json index 2eeff65..03ca8b9 100644 --- a/modules/radio/config.json +++ b/modules/radio/config.json @@ -1,5 +1,5 @@ { - "stream": "http://tripsit.fm:8000", - "announce": [ { "server": "tripsit", "name": "#tripbot" } ], + "stream": "http://radio.tripsit.me:8000/tripradio", + "announce": [ { "server": "tripsit", "name": "#drugs" } ], "outputPrefix": "\u00033radio\u000f" } diff --git a/modules/report/api.js b/modules/report/api.js index bd64206..5e5733a 100644 --- a/modules/report/api.js +++ b/modules/report/api.js @@ -35,12 +35,14 @@ var api = function(dbot) { return k; } }.bind(this)); - + ops = _.without(ops, undefined); +console.log(ops); this.db.read('nunsubs', cName + '.' + server, function(err, nunsubs) { if(nunsubs) { _.each(nunsubs.users, function(user) { var uPart = user.split('.')[0]; if(_.include(ops, uPart)) { +console.log('removing ' + uPart); ops = _.without(ops, uPart); } }); diff --git a/modules/report/report.js b/modules/report/report.js index 94f634e..2f29b0b 100644 --- a/modules/report/report.js +++ b/modules/report/report.js @@ -10,6 +10,7 @@ var report = function(dbot) { this.internalAPI = { 'notify': function(server, users, message) { async.eachSeries(users, function(nick, next) { +console.log('sending msg to ' + nick); setTimeout(function() { dbot.say(server, nick, message); next(); diff --git a/modules/users/api.js b/modules/users/api.js index c35878e..b9368bc 100644 --- a/modules/users/api.js +++ b/modules/users/api.js @@ -66,6 +66,9 @@ var api = function(dbot) { } }; + api['getUserAliases'].external = true; + api['getUserAliases'].extMap = [ 'id', 'callback' ]; + return api; };