thelounge/client/js/libs/handlebars/modes.js

14 lines
204 B
JavaScript
Raw Normal View History

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