thelounge/client/js/libs/handlebars/modes.js
2016-06-05 21:48:34 +03:00

14 lines
220 B
JavaScript

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