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));
|
modesToApply.push(currentPrefix + queuedModes + (' ' + user).repeat(queuedModes.length));
|
||||||
for(var i = 0; i < queuedModes.length; i++) modes.shift();
|
for(var i = 0; i < queuedModes.length; i++) modes.shift();
|
||||||
}
|
}
|
||||||
modesToApply.forEach(modeStr => {
|
modesToApply.forEach(modeStr => bot.mode(e.channel, modeStr, e.network));
|
||||||
bot.mode(e.channel, modeStr, e.network);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
e.reply('Error! Allowed modes are: ' + allowedModes.join(','));
|
e.reply('Error! Allowed modes are: ' + allowedModes.join(','));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user