Shuo/client/js/libs/handlebars/modes.js

14 lines
204 B
JavaScript

Handlebars.registerHelper(
"modes", function(mode) {
var modes = {
"~": "owner",
"&": "admin",
"@": "op",
"%": "half-op",
"+": "voice",
"" : "normal"
};
return modes[mode];
}
);