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