removed n\a commands from help

This commit is contained in:
Mathew committed 2019-04-09 12:47:38 +02:00
1 parent 29cbc86b47
commit ed047e22c0
1 file changed
+4 -3
+4 -3
View File
@@ -22,6 +22,9 @@ module.exports = {
(function(commands, response){
var out = []
for(let com in commands){
if (commands[com].permissions[response.socket.udata.group] !== 1){
continue
}
out.push([`<txred>${com}</txred> ${(function(args){
let out = ""
for(let arg of args){
@@ -36,9 +39,7 @@ module.exports = {
out += arg+" "
}
return out
})(commands[com].args)}`, commands[com].desc, `[permission: ${
commands[com].permissions[response.socket.udata.group] == 1 ? "<txgrn>Yes</txgrn>" : "<txred>No</txred>"
}]`])
})(commands[com].args)}`, commands[com].desc])
}
return out
})(db.commands, response)