2016-10-09 19:14:02 +00:00
|
|
|
"use strict";
|
|
|
|
|
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",
|
2016-06-05 18:48:34 +00:00
|
|
|
"": "normal"
|
2014-10-04 19:47:27 +00:00
|
|
|
};
|
|
|
|
return modes[mode];
|
|
|
|
}
|
|
|
|
);
|