mirror of
https://github.com/thelounge/thelounge
synced 2024-12-22 18:33:12 +00:00
14 lines
220 B
JavaScript
14 lines
220 B
JavaScript
Handlebars.registerHelper(
|
|
"modes", function(mode) {
|
|
var modes = {
|
|
"~": "owner",
|
|
"&": "admin",
|
|
"!": "admin",
|
|
"@": "op",
|
|
"%": "half-op",
|
|
"+": "voice",
|
|
"": "normal"
|
|
};
|
|
return modes[mode];
|
|
}
|
|
);
|