forked from GitHub/dbot
fixed up kick [#131]
This commit is contained in:
parent
1d5fcf2f40
commit
7a6cab841e
@ -50,12 +50,11 @@ var kick = function(dbot) {
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
'name': 'kick',
|
||||
'ignorable': false,
|
||||
'commands': commands,
|
||||
this.name = 'kick';
|
||||
this.ignorable = false;
|
||||
this.commands = commands;
|
||||
|
||||
'listener': function(event) {
|
||||
this.listener = function(event) {
|
||||
if(event.kickee == dbot.config.name) {
|
||||
dbot.instance.join(event, event.channel);
|
||||
event.reply(dbot.t('kicked_dbot', { 'botname': dbot.config.name }));
|
||||
@ -79,11 +78,10 @@ var kick = function(dbot) {
|
||||
'kicked': dbot.db.kickers[event.kickee]
|
||||
}) + ')');
|
||||
}
|
||||
},
|
||||
on: 'KICK'
|
||||
};
|
||||
this.on = 'KICK';
|
||||
};
|
||||
|
||||
exports.fetch = function(dbot) {
|
||||
return kick(dbot);
|
||||
return new kick(dbot);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user