shortened a bit

This commit is contained in:
jkhsjdhjs 2016-09-06 14:05:35 +02:00
parent 60a9ae85a3
commit d845de1e02

View File

@ -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(','));