mirror of
https://github.com/reality/dbot.git
synced 2025-01-23 18:44:14 +01:00
parent
9226da5b76
commit
2b7b67b894
@ -48,6 +48,12 @@ var commands = function(dbot) {
|
|||||||
adminChannel = this.config.admin_channel[event.server];
|
adminChannel = this.config.admin_channel[event.server];
|
||||||
channels = dbot.config.servers[server].channels;
|
channels = dbot.config.servers[server].channels;
|
||||||
|
|
||||||
|
dbot.api.nickserv.getUserHost(event.server, banee, function(host) {
|
||||||
|
// Add host record entry
|
||||||
|
if(!_.has(this.hosts, event.server)) this.hosts[event.server] = {};
|
||||||
|
this.hosts[event.server][banee] = host;
|
||||||
|
|
||||||
|
// Create notify string
|
||||||
var notifyString = dbot.t('nbanned', {
|
var notifyString = dbot.t('nbanned', {
|
||||||
'banner': banner,
|
'banner': banner,
|
||||||
'banee': banee,
|
'banee': banee,
|
||||||
@ -100,6 +106,7 @@ var commands = function(dbot) {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
banChannel(channels);
|
banChannel(channels);
|
||||||
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
/*** Kick Stats ***/
|
/*** Kick Stats ***/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"dbKeys": [ "kicks", "kickers" ],
|
"dbKeys": [ "kicks", "kickers", "hosts" ],
|
||||||
"dependencies": [ "command", "report", "users" ],
|
"dependencies": [ "command", "report", "users" ],
|
||||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/kick/README.md",
|
"help": "http://github.com/reality/depressionbot/blob/master/modules/kick/README.md",
|
||||||
"ignorable": true,
|
"ignorable": true,
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
var _ = require('underscore')._;
|
var _ = require('underscore')._;
|
||||||
|
|
||||||
var kick = function(dbot) {
|
var kick = function(dbot) {
|
||||||
|
this.hosts = dbot.db.hosts;
|
||||||
|
|
||||||
this.api = {
|
this.api = {
|
||||||
'ban': function(server, user, channel) {
|
'ban': function(server, user, channel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user