shortened a bit
This commit is contained in:
parent
60a9ae85a3
commit
d845de1e02
|
@ -31,9 +31,7 @@ module.exports = (bot, trigger, lib) => {
|
|||
modesToApply.push(currentPrefix + queuedModes + (' ' + user).repeat(queuedModes.length));
|
||||
for(var i = 0; i < queuedModes.length; i++) modes.shift();
|
||||
}
|
||||
modesToApply.forEach(modeStr => {
|
||||
bot.mode(e.channel, modeStr, e.network);
|
||||
});
|
||||
modesToApply.forEach(modeStr => bot.mode(e.channel, modeStr, e.network));
|
||||
}
|
||||
else
|
||||
e.reply('Error! Allowed modes are: ' + allowedModes.join(','));
|
||||
|
|
Loading…
Reference in New Issue
Block a user