can't stump the f0ck

This commit is contained in:
Flummi 2016-10-21 01:18:02 +02:00
parent a30b025fff
commit 683669bffd

View File

@ -12,6 +12,7 @@ module.exports = (lib) => {
var name = args[1].replace('@','');
var level = (args[2]>=100)?100:args[2];
if(user.toLowerCase() != lib.bot.me.nick.toLowerCase()) {
if( name in e.channel.names ) {
lib.bot.whois(name.trim(), e.network, (err, data) => {
if(!err) {
@ -49,6 +50,9 @@ module.exports = (lib) => {
else
e.reply('user '+name+' not found');
}
else
e.reply('f0ck you hard');
}
else
e.reply('no permission, min level 100 required');
}