thelounge/client/js/libs/handlebars/modes.js
2014-10-04 12:47:27 -07:00

13 lines
204 B
JavaScript

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