Generic.curProtocol.outPRVMSG(who, user, "\u0002COMMAND \u0002<required argument> [optional argument]");
Generic.curProtocol.outPRVMSG(who, user, "\u0002 Command Description\u0002");
Generic.curProtocol.outPRVMSG(who, user, "\u0002------------------------------------------------\u0002");
for (Map.Entry<String, CommandModule> z : who.getCommands().entrySet()) {
CommandModule cm = z.getValue();
if (Configuration.getSvc().containsKey(Configuration.authservice)) {
if (cm.getDesc().Required_Access.ordinal() <= ((SrvAuth) Configuration.getSvc().get(Configuration.authservice)).checkAccess(user.toLowerCase()).ordinal()) {
if (!cm.getName().startsWith("\u0001")) {
Generic.curProtocol.outPRVMSG(who, user, "\u0002" + util.pad(z.getKey(), 12) + "\u0002" + cm.getDesc().arguments);
Generic.curProtocol.outPRVMSG(who, user, "\u0002 " + cm.getDesc().help + "\u0002");
}
}
} else {
if (!cm.getName().startsWith("\u0001")) {
Generic.curProtocol.outPRVMSG(who, user, "\u0002" + util.pad(z.getKey(), 12) + "\u0002" + cm.getDesc().arguments);
Generic.curProtocol.outPRVMSG(who, user, "\u0002 " + cm.getDesc().help + "\u0002");
}
}
}
}