user is now guaranteed to be in the channel, so...
This commit is contained in:
parent
4ebbcd1955
commit
4c5bd3dd1d
|
@ -18,7 +18,6 @@ module.exports = (bot, trigger, lib) => {
|
|||
tmp.pop();
|
||||
var modes;
|
||||
if(user.toLowerCase() != bot.me.nick.toLowerCase()) {
|
||||
if(user in e.channel.names) {
|
||||
if(modes = processModes(tmp.join(' '))) {
|
||||
if(checkModes(modes.give + modes.revoke, allowedModes)) {
|
||||
if(modes.give != "") bot.mode(e.channel, '+' + modes.give + ' ' + (user+' ').repeat(modes.give.length), e.network);
|
||||
|
@ -30,9 +29,6 @@ module.exports = (bot, trigger, lib) => {
|
|||
else
|
||||
e.reply('Syntax Error!');
|
||||
}
|
||||
else
|
||||
e.reply('user '+user+' not found!');
|
||||
}
|
||||
else
|
||||
e.reply('f0ck you hard');
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user