hardlounge/client/js/libs/handlebars/modes.js

15 lines
220 B
JavaScript
Raw Normal View History

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