mirror of
https://github.com/thelounge/thelounge
synced 2024-12-21 01:43:07 +00:00
13 lines
204 B
JavaScript
13 lines
204 B
JavaScript
Handlebars.registerHelper(
|
|
"modes", function(mode) {
|
|
var modes = {
|
|
"~": "owner",
|
|
"&": "admin",
|
|
"@": "op",
|
|
"%": "half-op",
|
|
"+": "voice",
|
|
"" : "normal"
|
|
};
|
|
return modes[mode];
|
|
}
|
|
);
|